ApiPlatform\Core\Metadata\Property\PropertyMetadata::withChildInherited PHP Метод

withChildInherited() публичный Метод

Returns a new instance with the given child inherited class.
public withChildInherited ( string $childInherited ) : self
$childInherited string
Результат self
    public function withChildInherited(string $childInherited) : self
    {
        $metadata = clone $this;
        $metadata->childInherited = $childInherited;
        return $metadata;
    }