protected function processPropertyForCache($propertyName)
    {
        $value = $this->$propertyName;

        if ($value instanceof CacheableInterface) {
            $value = $value->getDataForCache();
        } elseif (is_object($value)) {
            $value = null;
        }

        return $value;
    }
protected function processPropertyForCache($propertyName)
    {
        $value = $this->$propertyName;

        if ($value instanceof CacheableInterface) {
            $value = $value->getDataForCache();
        } elseif (is_object($value)) {
            $value = null;
        }

        return $value;
    }
protected function processPropertyForCache ( $ propertyName ) { $ value = $ this -> $ propertyName ; if ( $ value instanceof CacheableInterface ) { $ value = $ value -> getDataForCache ( ) ; } elseif ( is_object ( $ value ) ) { $ value = null ; } return $ value ; }
Process a property to get data for caching flow

@param string $propertyName
@return mixed|null
Process a property to get data for caching flow