src/idOS/Section/AbstractSection.php
protected function createEndpoint(string $name, array $args) : EndpointInterface {
        $className = $this->getEndpointClassName($name);

        // aditional parameters
        $args[] = $this->authentication;
        $args[] = $this->client;
        $args[] = $this->throwsExceptions;
        $args[] = $this->baseUrl;

        return new $className(...$args);
    }
protected function createEndpoint(string $name, array $args) : EndpointInterface {
        $className = $this->getEndpointClassName($name);

        // aditional parameters
        $args[] = $this->authentication;
        $args[] = $this->client;
        $args[] = $this->throwsExceptions;
        $args[] = $this->baseUrl;

        return new $className(...$args);
    }
protected function createEndpoint ( string $ name , array $ args ) : EndpointInterface { $ className = $ this -> getEndpointClassName ( $ name ) ; // aditional parameters $ args [ ] = $ this -> authentication ; $ args [ ] = $ this -> client ; $ args [ ] = $ this -> throwsExceptions ; $ args [ ] = $ this -> baseUrl ; return new $ className ( ... $ args ) ; }
Return an endpoint instance properly initialized.

@param string $name
@param array  $args

@return \idOS\Endpoint\EndpointInterface
Return an endpoint instance properly initialized .