Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Db / Sql / Predicate / Like.php
blob3f53ab0968effe6766662a55ff016d5c743c02f6
1 <?php
2 /**
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
8 */
10 namespace Zend\Db\Sql\Predicate;
12 class Like implements PredicateInterface
15 /**
16 * @var string
18 protected $specification = '%1$s LIKE %2$s';
20 /**
21 * @var string
23 protected $identifier = '';
25 /**
26 * @var string
28 protected $like = '';
30 /**
31 * @param string $identifier
32 * @param string $like
34 public function __construct($identifier = null, $like = null)
36 if ($identifier) {
37 $this->setIdentifier($identifier);
39 if ($like) {
40 $this->setLike($like);
44 /**
45 * @param string $identifier
46 * @return self
48 public function setIdentifier($identifier)
50 $this->identifier = $identifier;
51 return $this;
54 /**
55 * @return string
57 public function getIdentifier()
59 return $this->identifier;
62 /**
63 * @param string $like
64 * @return self
66 public function setLike($like)
68 $this->like = $like;
69 return $this;
72 /**
73 * @return string
75 public function getLike()
77 return $this->like;
80 /**
81 * @param string $specification
82 * @return self
84 public function setSpecification($specification)
86 $this->specification = $specification;
87 return $this;
90 /**
91 * @return string
93 public function getSpecification()
95 return $this->specification;
98 /**
99 * @return array
101 public function getExpressionData()
103 return array(
104 array($this->specification, array($this->identifier, $this->like), array(self::TYPE_IDENTIFIER, self::TYPE_VALUE))