getProperties() == null && in_array($property, $this->getProperties(), true) ) { return; } $this->_properties [] = $property; } /** * Removes a property from the group of properties * * @param OptionsPropertyItem $property the property instance to be removed * from the group * * @return void */ public function removeProperty($property) { $this->_properties = array_udiff( $this->getProperties(), array($property), function ($a, $b) { return ($a === $b ) ? 0 : 1; } ); } /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */ /** * Gets the instance of the class * * @return array */ public function getGroup() { return $this; } /** * Gets the group of properties * * @return array */ public function getProperties() { return $this->_properties; } /** * Gets the number of properties * * @return int */ public function getNrOfProperties() { return count($this->_properties); } } ?>