lithium\net\socket\Context::__construct PHP 메소드

__construct() 공개 메소드

Constructor.
public __construct ( array $config = [] ) : void
$config array Available configuration options are: - `'mode'` _string_ - `'message'` _object_
리턴 void
    public function __construct(array $config = array())
    {
        $defaults = array('mode' => 'r', 'message' => null);
        parent::__construct($config + $defaults);
        $this->timeout($this->_config['timeout']);
    }