/** * Singleton: get an instance * * @return Zood_Entity_Null */ public static function getInstance() { if (is_null(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; }
/** * 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; }