Prose\ZmqSocketBase::__construct PHP Method

__construct() public method

public __construct ( Storyteller $st, $params = [] )
$st Storyteller
    public function __construct(Storyteller $st, $params = [])
    {
        // call our parent first
        parent::__construct($st, $params);
        // make sure that we have a ZMQ socket
        if (!isset($params[0]) || !$params[0] instanceof ZMQSocket) {
            throw new E5xx_ActionFailed(__METHOD__, "first param must be a ZMQ socket");
        }
    }
ZmqSocketBase