3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Db\Sql\Predicate
;
12 class Like
implements PredicateInterface
18 protected $specification = '%1$s LIKE %2$s';
23 protected $identifier = '';
31 * @param string $identifier
34 public function __construct($identifier = null, $like = null)
37 $this->setIdentifier($identifier);
40 $this->setLike($like);
45 * @param string $identifier
48 public function setIdentifier($identifier)
50 $this->identifier
= $identifier;
57 public function getIdentifier()
59 return $this->identifier
;
66 public function setLike($like)
75 public function getLike()
81 * @param string $specification
84 public function setSpecification($specification)
86 $this->specification
= $specification;
93 public function getSpecification()
95 return $this->specification
;
101 public function getExpressionData()
104 array($this->specification
, array($this->identifier
, $this->like
), array(self
::TYPE_IDENTIFIER
, self
::TYPE_VALUE
))