Example #1
0
 /**
  * Singleton: get an instance
  * 
  * @return Zood_Entity_Null
  */
 public static function getInstance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Example #2
0
 /**
  * Set a member variable to Zood_Entity_Null
  * 
  * @param string $propertyName
  * @return $this
  */
 public function setToNull($propertyName)
 {
     $this->{$propertyName} = Zood_Entity_Null::getInstance();
     return $this;
 }