src/Hydra/Serializer/DocumentationNormalizer.php
private function populateEntrypointProperties(string $resourceClass, ResourceMetadata $resourceMetadata, string $shortName, string $prefixedShortName, array &$entrypointProperties)
    {
        $hydraCollectionOperations = $this->getHydraOperations($resourceClass, $resourceMetadata, $prefixedShortName, true);
        if (empty($hydraCollectionOperations)) {
            return;
        }

        $entrypointProperty = [
            '@type' => 'hydra:SupportedProperty',
            'hydra:property' => [
                '@id' => sprintf('#Entrypoint/%s', lcfirst($shortName)),
                '@type' => 'hydra:Link',
                'domain' => '#Entrypoint',
                'rdfs:label' => "The collection of $shortName resources",
                'rdfs:range' => [
                    ['@id' => 'hydra:Collection'],
                    [
                        'owl:equivalentClass' => [
                            'owl:onProperty' => ['@id' => 'hydra:member'],
                            'owl:allValuesFrom' => ['@id' => $prefixedShortName],
                        ],
                    ],
                ],
                'hydra:supportedOperation' => $hydraCollectionOperations,
            ],
            'hydra:title' => "The collection of $shortName resources",
            'hydra:readable' => true,
            'hydra:writable' => false,
        ];

        if ($resourceMetadata->getCollectionOperationAttribute('GET', 'deprecation_reason', null, true)) {
            $entrypointProperty['owl:deprecated'] = true;
        }

        $entrypointProperties[] = $entrypointProperty;
    }
private function populateEntrypointProperties(string $resourceClass, ResourceMetadata $resourceMetadata, string $shortName, string $prefixedShortName, array &$entrypointProperties)
    {
        $hydraCollectionOperations = $this->getHydraOperations($resourceClass, $resourceMetadata, $prefixedShortName, true);
        if (empty($hydraCollectionOperations)) {
            return;
        }

        $entrypointProperty = [
            '@type' => 'hydra:SupportedProperty',
            'hydra:property' => [
                '@id' => sprintf('#Entrypoint/%s', lcfirst($shortName)),
                '@type' => 'hydra:Link',
                'domain' => '#Entrypoint',
                'rdfs:label' => "The collection of $shortName resources",
                'rdfs:range' => [
                    ['@id' => 'hydra:Collection'],
                    [
                        'owl:equivalentClass' => [
                            'owl:onProperty' => ['@id' => 'hydra:member'],
                            'owl:allValuesFrom' => ['@id' => $prefixedShortName],
                        ],
                    ],
                ],
                'hydra:supportedOperation' => $hydraCollectionOperations,
            ],
            'hydra:title' => "The collection of $shortName resources",
            'hydra:readable' => true,
            'hydra:writable' => false,
        ];

        if ($resourceMetadata->getCollectionOperationAttribute('GET', 'deprecation_reason', null, true)) {
            $entrypointProperty['owl:deprecated'] = true;
        }

        $entrypointProperties[] = $entrypointProperty;
    }
private function populateEntrypointProperties ( string $ resourceClass , ResourceMetadata $ resourceMetadata , string $ shortName , string $ prefixedShortName , array & $ entrypointProperties ) { $ hydraCollectionOperations = $ this -> getHydraOperations ( $ resourceClass , $ resourceMetadata , $ prefixedShortName , true ) ; if ( empty ( $ hydraCollectionOperations ) ) { return ; } $ entrypointProperty = [ '@type' => 'hydra:SupportedProperty' , 'hydra:property' => [ '@id' => sprintf ( '#Entrypoint/%s' , lcfirst ( $ shortName ) ) , '@type' => 'hydra:Link' , 'domain' => '#Entrypoint' , 'rdfs:label' => "The collection of $shortName resources" , 'rdfs:range' => [ [ '@id' => 'hydra:Collection' ] , [ 'owl:equivalentClass' => [ 'owl:onProperty' => [ '@id' => 'hydra:member' ] , 'owl:allValuesFrom' => [ '@id' => $ prefixedShortName ] , ] , ] , ] , 'hydra:supportedOperation' => $ hydraCollectionOperations , ] , 'hydra:title' => "The collection of $shortName resources" , 'hydra:readable' => true , 'hydra:writable' => false , ] ; if ( $ resourceMetadata -> getCollectionOperationAttribute ( 'GET' , 'deprecation_reason' , null , true ) ) { $ entrypointProperty [ 'owl:deprecated' ] = true ; } $ entrypointProperties [ ] = $ entrypointProperty ; }
Populates entrypoint properties.
Populates entrypoint properties .