src/Model/ApiResourceBase.php
public function getProperty($property, $required = true, $lazyLoad = true)
    {
        if (!$this->hasProperty($property, $lazyLoad)) {
            if ($required) {
                throw new \InvalidArgumentException("Property not found: $property");
            }
            return null;
        }

        return $this->data[$property];
    }
public function getProperty($property, $required = true, $lazyLoad = true)
    {
        if (!$this->hasProperty($property, $lazyLoad)) {
            if ($required) {
                throw new \InvalidArgumentException("Property not found: $property");
            }
            return null;
        }

        return $this->data[$property];
    }
public function getProperty ( $ property , $ required = true , $ lazyLoad = true ) { if ( ! $ this -> hasProperty ( $ property , $ lazyLoad ) ) { if ( $ required ) { throw new \ InvalidArgumentException ( "Property not found: $property" ) ; } return null ; } return $ this -> data [ $ property ] ; }
Get a property of the resource.

@param string $property
@param bool   $required
@param bool   $lazyLoad

@throws \InvalidArgumentException If $required is true and the property
is not found.

@return mixed|null
The property value, or null if the property does not exist (and
$required is false).
Get a property of the resource .