src/DoctrineStaticMeta.php
public function getEmbeddableProperties(): array
    {
        if (null !== $this->embeddableProperties) {
            return $this->embeddableProperties;
        }
        $traits = $this->reflectionClass->getTraits();
        $return = [];
        foreach ($traits as $traitName => $traitReflection) {
            if (\ts\stringContains($traitName, '\\Entity\\Embeddable\\Traits')) {
                $property                     = $traitReflection->getProperties()[0]->getName();
                $embeddableObjectInterfaceFqn = $this->getTypesFromVarComment(
                    $property,
                    $this->getReflectionHelper()->getTraitProvidingProperty($traitReflection, $property)
                )[0];
                $embeddableObject             = $this->getNamespaceHelper()
                                                     ->getEmbeddableObjectFqnFromEmbeddableObjectInterfaceFqn(
                                                         $embeddableObjectInterfaceFqn
                                                     );
                $return[$property]            = $embeddableObject;
            }
        }

        return $return;
    }
public function getEmbeddableProperties(): array
    {
        if (null !== $this->embeddableProperties) {
            return $this->embeddableProperties;
        }
        $traits = $this->reflectionClass->getTraits();
        $return = [];
        foreach ($traits as $traitName => $traitReflection) {
            if (\ts\stringContains($traitName, '\\Entity\\Embeddable\\Traits')) {
                $property                     = $traitReflection->getProperties()[0]->getName();
                $embeddableObjectInterfaceFqn = $this->getTypesFromVarComment(
                    $property,
                    $this->getReflectionHelper()->getTraitProvidingProperty($traitReflection, $property)
                )[0];
                $embeddableObject             = $this->getNamespaceHelper()
                                                     ->getEmbeddableObjectFqnFromEmbeddableObjectInterfaceFqn(
                                                         $embeddableObjectInterfaceFqn
                                                     );
                $return[$property]            = $embeddableObject;
            }
        }

        return $return;
    }
public function getEmbeddableProperties ( ) : array { if ( null !== $ this -> embeddableProperties ) { return $ this -> embeddableProperties ; } $ traits = $ this -> reflectionClass -> getTraits ( ) ; $ return = [ ] ; foreach ( $ traits as $ traitName => $ traitReflection ) { if ( \ ts \ stringContains ( $ traitName , '\\Entity\\Embeddable\\Traits' ) ) { $ property = $ traitReflection -> getProperties ( ) [ 0 ] -> getName ( ) ; $ embeddableObjectInterfaceFqn = $ this -> getTypesFromVarComment ( $ property , $ this -> getReflectionHelper ( ) -> getTraitProvidingProperty ( $ traitReflection , $ property ) ) [ 0 ] ; $ embeddableObject = $ this -> getNamespaceHelper ( ) -> getEmbeddableObjectFqnFromEmbeddableObjectInterfaceFqn ( $ embeddableObjectInterfaceFqn ) ; $ return [ $ property ] = $ embeddableObject ; } } return $ return ; }
Get an array of property names that contain embeddable objects

@return array
@throws \ReflectionException
Get an array of property names that contain embeddable objects