Neomerx\JsonApi\Schema\IdentitySchema::__construct PHP Метод

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

public __construct ( Neomerx\JsonApi\Contracts\Schema\SchemaFactoryInterface $factory, Neomerx\JsonApi\Contracts\Schema\ContainerInterface $container, string $classType, Closure $identityClosure )
$factory Neomerx\JsonApi\Contracts\Schema\SchemaFactoryInterface
$container Neomerx\JsonApi\Contracts\Schema\ContainerInterface
$classType string
$identityClosure Closure function($resource) : string
    public function __construct(SchemaFactoryInterface $factory, ContainerInterface $container, $classType, Closure $identityClosure)
    {
        $schemaForRealType = $container->getSchemaByType($classType);
        $this->resourceType = $schemaForRealType->getResourceType();
        $this->selfSubUrl = $schemaForRealType->getSelfSubUrl();
        parent::__construct($factory);
        $this->identityClosure = $identityClosure;
    }