ApiPlatform\Core\Metadata\Property\PropertyMetadata::withChildInherited PHP Méthode

withChildInherited() public méthode

Returns a new instance with the given child inherited class.
public withChildInherited ( string $childInherited ) : self
$childInherited string
Résultat self
    public function withChildInherited(string $childInherited) : self
    {
        $metadata = clone $this;
        $metadata->childInherited = $childInherited;
        return $metadata;
    }