package Default
inherited_from \Zend\Db\Sql\AbstractExpression

 Methods

__construct()

__construct(string $identifier = null, string $like = null

Parameters

$identifier

string

$like

string

getExpressionData()

getExpressionData() : array

Returns

array

getIdentifier()

getIdentifier() : string

Returns

string

getLike()

getLike() : string

Returns

string

getSpecification()

getSpecification() : string

Returns

string

setIdentifier()

setIdentifier(string $identifier) : \Zend\Db\Sql\Predicate\Like
fluent This method is part of a fluent interface and will return the same instance

Parameters

$identifier

string

Returns

\Zend\Db\Sql\Predicate\Like

setLike()

setLike(string $like) : \Zend\Db\Sql\Predicate\Like
fluent This method is part of a fluent interface and will return the same instance

Parameters

$like

string

Returns

\Zend\Db\Sql\Predicate\Like

setSpecification()

setSpecification(string $specification) : \Zend\Db\Sql\Predicate\Like
fluent This method is part of a fluent interface and will return the same instance

Parameters

$specification

string

Returns

\Zend\Db\Sql\Predicate\Like

Normalize Argument

normalizeArgument(mixed $argument, string $defaultType = self::TYPE_VALUE) : array
Inherited

Parameters

$argument

mixed

$defaultType

string

Exceptions

\Zend\Db\Sql\Exception\InvalidArgumentException

Returns

array

buildNormalizedArgument()

buildNormalizedArgument(mixed $argument, string $argumentType) : array
Inherited

Parameters

$argument

mixed

$argumentType

string

Exceptions

\Zend\Db\Sql\Exception\InvalidArgumentException

Returns

array

 Properties

 

$allowedTypes

$allowedTypes : array<mixed,string>

Default

array(self::TYPE_IDENTIFIER, self::TYPE_LITERAL, self::TYPE_SELECT, self::TYPE_VALUE)
 

$identifier

$identifier : string

Default

''
 

$like

$like : string

Default

''
 

$specification

$specification : string

Default

'%1$s LIKE %2$s'