src/Factory.php
public function createServer($name)
    {
        $server = new Server();
        if (in_array($name, $this->getKnownServers())) {
            $server
                ->setChecker(new Checker())
                ->setStartMultiLine($this->servers[$name]['directives']['start_multiline'])
                ->setEndMultiLine($this->servers[$name]['directives']['end_multiline'])
                ->setSimpleDirective($this->servers[$name]['directives']['simple'])
                ->setBinaries($this->servers[$name]['controlers'])
                ->setDetectionParameter($this->servers[$name]['switch']['detect'])
                ->setBeforeMethods($this->servers[$name]['parser']['before'])
                ->setAfterMethods($this->servers[$name]['parser']['after'])
                ->setDumperSimpleDirective($this->servers[$name]['dumper']['simple'])
                ->setDumperStartDirective($this->servers[$name]['dumper']['start_multiline'])
                ->setDumperEndDirective($this->servers[$name]['dumper']['end_multiline'])
                ->setKnownDirectives($this->servers[$name]['known_directives'])
            ;
        }

        return $server;
    }
public function createServer($name)
    {
        $server = new Server();
        if (in_array($name, $this->getKnownServers())) {
            $server
                ->setChecker(new Checker())
                ->setStartMultiLine($this->servers[$name]['directives']['start_multiline'])
                ->setEndMultiLine($this->servers[$name]['directives']['end_multiline'])
                ->setSimpleDirective($this->servers[$name]['directives']['simple'])
                ->setBinaries($this->servers[$name]['controlers'])
                ->setDetectionParameter($this->servers[$name]['switch']['detect'])
                ->setBeforeMethods($this->servers[$name]['parser']['before'])
                ->setAfterMethods($this->servers[$name]['parser']['after'])
                ->setDumperSimpleDirective($this->servers[$name]['dumper']['simple'])
                ->setDumperStartDirective($this->servers[$name]['dumper']['start_multiline'])
                ->setDumperEndDirective($this->servers[$name]['dumper']['end_multiline'])
                ->setKnownDirectives($this->servers[$name]['known_directives'])
            ;
        }

        return $server;
    }
public function createServer ( $ name ) { $ server = new Server ( ) ; if ( in_array ( $ name , $ this -> getKnownServers ( ) ) ) { $ server -> setChecker ( new Checker ( ) ) -> setStartMultiLine ( $ this -> servers [ $ name ] [ 'directives' ] [ 'start_multiline' ] ) -> setEndMultiLine ( $ this -> servers [ $ name ] [ 'directives' ] [ 'end_multiline' ] ) -> setSimpleDirective ( $ this -> servers [ $ name ] [ 'directives' ] [ 'simple' ] ) -> setBinaries ( $ this -> servers [ $ name ] [ 'controlers' ] ) -> setDetectionParameter ( $ this -> servers [ $ name ] [ 'switch' ] [ 'detect' ] ) -> setBeforeMethods ( $ this -> servers [ $ name ] [ 'parser' ] [ 'before' ] ) -> setAfterMethods ( $ this -> servers [ $ name ] [ 'parser' ] [ 'after' ] ) -> setDumperSimpleDirective ( $ this -> servers [ $ name ] [ 'dumper' ] [ 'simple' ] ) -> setDumperStartDirective ( $ this -> servers [ $ name ] [ 'dumper' ] [ 'start_multiline' ] ) -> setDumperEndDirective ( $ this -> servers [ $ name ] [ 'dumper' ] [ 'end_multiline' ] ) -> setKnownDirectives ( $ this -> servers [ $ name ] [ 'known_directives' ] ) ; } return $ server ; }
Builds a server instance.

@param string $name a server specification name

@return Server\ServerInterface a server instance
Builds a server instance .