Airship\Cabin\Bridge\Blueprint\ChannelUpdates::__construct PHP Method

__construct() public method

ChannelUpdates constructor.
public __construct ( Database $db, string $channel = '' )
$db Database
$channel string
    public function __construct(Database $db, string $channel = '')
    {
        parent::__construct($db);
        $this->channel = $channel;
        $channelConfig = \Airship\loadJSON(ROOT . '/config/channels.json');
        $this->channelPublicKey = new SignaturePublicKey(\Sodium\hex2bin($channelConfig[$channel]['publickey']));
        $this->urls = $channelConfig[$channel]['urls'];
    }