private function getSupportedAttribute($event)
    {
        $model = $event->getModel();

        // Not a metamodel model.
        if (!$model instanceof Model) {
            return null;
        }

        $property  = $event->getProperty();
        $attribute = $model->getItem()->getAttribute($property);

        if ($attribute instanceof Timestamp) {
            return $attribute;
        }

        return null;
    }
private function getSupportedAttribute($event)
    {
        $model = $event->getModel();

        // Not a metamodel model.
        if (!$model instanceof Model) {
            return null;
        }

        $property  = $event->getProperty();
        $attribute = $model->getItem()->getAttribute($property);

        if ($attribute instanceof Timestamp) {
            return $attribute;
        }

        return null;
    }
private function getSupportedAttribute ( $ event ) { $ model = $ event -> getModel ( ) ; // Not a metamodel model. if ( ! $ model instanceof Model ) { return null ; } $ property = $ event -> getProperty ( ) ; $ attribute = $ model -> getItem ( ) -> getAttribute ( $ property ) ; if ( $ attribute instanceof Timestamp ) { return $ attribute ; } return null ; }
Get the supported attribute or null.

@param EncodePropertyValueFromWidgetEvent|DecodePropertyValueForWidgetEvent $event The subscribed event.

@return Timestamp|null
Get the supported attribute or null .