public function removePropertyByName($name)
    {
        foreach ($this->properties as $key => $property) {
            if ($property->getName() == $name) {
                unset($this->properties[$key]);
                return;
            }
        }

        throw new \InvalidArgumentException(sprintf('The property "%s" does not exists.', $name));
    }
public function removePropertyByName($name)
    {
        foreach ($this->properties as $key => $property) {
            if ($property->getName() == $name) {
                unset($this->properties[$key]);
                return;
            }
        }

        throw new \InvalidArgumentException(sprintf('The property "%s" does not exists.', $name));
    }
public function removePropertyByName ( $ name ) { foreach ( $ this -> properties as $ key => $ property ) { if ( $ property -> getName ( ) == $ name ) { unset ( $ this -> properties [ $ key ] ) ; return ; } } throw new \ InvalidArgumentException ( sprintf ( 'The property "%s" does not exists.' , $ name ) ) ; }
Remove property by name.

@param string $name The property name.

@throws \InvalidArgumentException If the property does not exists.

@api
Remove property by name .