/usr/share/phpmyadmin/libraries/classes/Properties/Options
Edit: /usr/share/phpmyadmin/libraries/classes/Properties/Options/OptionsPropertyGroup.php (2382B)
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_diff(
$this->getProperties(),
[$property]
);
}
/* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
/**
* Gets the instance of the class
*
* @return OptionsPropertyGroup
*/
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()
{
if ($this->properties === null) {
return 0;
}
return count($this->properties);
}
/**
* Countable interface implementation.
*
* @return int
*/
#[\ReturnTypeWillChange]
public function count()
{
return $this->getNrOfProperties();
}
}