public function getProperties(Translatable $model): array
    {
        $class = get_class($model);

        if (substr($class, 0, 15) === 'Proxies\\__CG__\\') {
            $class = substr($class, 15);
        }

        $properties = [];
        $reflection = new ReflectionClass($class);

        foreach ($reflection->getProperties() as $property) {
            $annotation = $this->annotationReader->getPropertyAnnotation($property, Translate::class);

            if (!$annotation) {
                continue;
            }

            $properties[] = $property;
        }

        return $properties;
    }
public function getProperties(Translatable $model): array
    {
        $class = get_class($model);

        if (substr($class, 0, 15) === 'Proxies\\__CG__\\') {
            $class = substr($class, 15);
        }

        $properties = [];
        $reflection = new ReflectionClass($class);

        foreach ($reflection->getProperties() as $property) {
            $annotation = $this->annotationReader->getPropertyAnnotation($property, Translate::class);

            if (!$annotation) {
                continue;
            }

            $properties[] = $property;
        }

        return $properties;
    }
public function getProperties ( Translatable $ model ) : array { $ class = get_class ( $ model ) ; if ( substr ( $ class , 0 , 15 ) === 'Proxies\\__CG__\\' ) { $ class = substr ( $ class , 15 ) ; } $ properties = [ ] ; $ reflection = new ReflectionClass ( $ class ) ; foreach ( $ reflection -> getProperties ( ) as $ property ) { $ annotation = $ this -> annotationReader -> getPropertyAnnotation ( $ property , Translate :: class ) ; if ( ! $ annotation ) { continue ; } $ properties [ ] = $ property ; } return $ properties ; }
Get properties with Translate annotation

@param \Ds\Component\Translation\Model\Type\Translatable $model
@return array
Get properties with Translate annotation