public function getPropertyById($id)
    {
        return isset($this->propertiesById[$id]) ? $this->propertiesById[$id] : null;
    }
public function getPropertyById($id)
    {
        return isset($this->propertiesById[$id]) ? $this->propertiesById[$id] : null;
    }
public function getPropertyById ( $ id ) { return isset ( $ this -> propertiesById [ $ id ] ) ? $ this -> propertiesById [ $ id ] : null ; }
Returns a property by ID.

Because repositories are not obligated to add property IDs to their query result properties,
this method might not always work as expected with some repositories. Use getPropertyByQueryName(String) instead.

@param string $id
@return PropertyDataInterface|null the property or <code>null</code> if the property doesn't
exist or hasn't been requested
Returns a property by ID .