public function __construct($socket) { parent::__construct($socket); if (false === $this->_connect()) { throw_socket_error(); } }