Factory/ChannelFactory.php
public function createChannelToken(array $data)
    {
        $channelToken = ChannelToken::create();

        if (isset($data['token'])) {
            $channelToken = $channelToken->setToken($data['token']);
        }

        if (isset($data['sig'])) {
            $channelToken = $channelToken->setSig($data['sig']);
        }

        if (isset($data['mobile_restricted'])) {
            $channelToken = $channelToken->setMobileRestricted($data['mobile_restricted']);
        }

        return $channelToken;
    }
public function createChannelToken(array $data)
    {
        $channelToken = ChannelToken::create();

        if (isset($data['token'])) {
            $channelToken = $channelToken->setToken($data['token']);
        }

        if (isset($data['sig'])) {
            $channelToken = $channelToken->setSig($data['sig']);
        }

        if (isset($data['mobile_restricted'])) {
            $channelToken = $channelToken->setMobileRestricted($data['mobile_restricted']);
        }

        return $channelToken;
    }
@param array $data

@return ChannelToken