Puli\Repository\Discovery\ResourceBinding::__construct PHP Метод

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

A resource binding has a query that is used to retrieve the resources matched by the binding. You can pass parameters that have been defined for the type. If you pass unknown parameters, or if a required parameter is missing, an exception is thrown. All parameters that you do not set here will receive the default values set for the parameter.
public __construct ( string $query, string $typeName, array $parameterValues = [], string $language = 'glob' )
$query string The resource query.
$typeName string The type to bind against.
$parameterValues array The values of the parameters defined for the type.
$language string The language of the resource query.
    public function __construct($query, $typeName, array $parameterValues = array(), $language = 'glob')
    {
        parent::__construct($typeName, $parameterValues);
        $this->query = $query;
        $this->language = $language;
    }