public function remove($property)
    {
        if (!array_key_exists($property, $this->data)) {
            throw new InvalidArgumentException(sprintf('Property %s does not exist', $property));
        }

        $value = $this->data[$property];
        unset($this->data[$property]);

        return $value;
    }
public function remove($property)
    {
        if (!array_key_exists($property, $this->data)) {
            throw new InvalidArgumentException(sprintf('Property %s does not exist', $property));
        }

        $value = $this->data[$property];
        unset($this->data[$property]);

        return $value;
    }
public function remove ( $ property ) { if ( ! array_key_exists ( $ property , $ this -> data ) ) { throw new InvalidArgumentException ( sprintf ( 'Property %s does not exist' , $ property ) ) ; } $ value = $ this -> data [ $ property ] ; unset ( $ this -> data [ $ property ] ) ; return $ value ; }
Removes the property

@return string The value that was stored for the given property
Removes the property