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 IsNull
implements PredicateInterface
18 protected $specification = '%1$s IS NULL';
23 protected $identifier;
28 * @param string $identifier
30 public function __construct($identifier = null)
33 $this->setIdentifier($identifier);
38 * Set identifier for comparison
40 * @param string $identifier
43 public function setIdentifier($identifier)
45 $this->identifier
= $identifier;
50 * Get identifier of comparison
54 public function getIdentifier()
56 return $this->identifier
;
60 * Set specification string to use in forming SQL predicate
62 * @param string $specification
65 public function setSpecification($specification)
67 $this->specification
= $specification;
72 * Get specification string to use in forming SQL predicate
76 public function getSpecification()
78 return $this->specification
;
82 * Get parts for where statement
86 public function getExpressionData()
89 $this->getSpecification(),
90 array($this->identifier
),
91 array(self
::TYPE_IDENTIFIER
),