src/Sly/NotificationPusher/Model/Push.php
private function checkDevicesTokens()
    {
        $devices = $this->getDevices();
        $adapter = $this->getAdapter();

        foreach ($devices as $device) {
            if (false === $adapter->supports($device->getToken())) {
                throw new AdapterException(
                    sprintf(
                        'Adapter %s does not support %s token\'s device',
                        (string)$adapter,
                        $device->getToken()
                    )
                );
            }
        }
    }
private function checkDevicesTokens()
    {
        $devices = $this->getDevices();
        $adapter = $this->getAdapter();

        foreach ($devices as $device) {
            if (false === $adapter->supports($device->getToken())) {
                throw new AdapterException(
                    sprintf(
                        'Adapter %s does not support %s token\'s device',
                        (string)$adapter,
                        $device->getToken()
                    )
                );
            }
        }
    }
private function checkDevicesTokens ( ) { $ devices = $ this -> getDevices ( ) ; $ adapter = $ this -> getAdapter ( ) ; foreach ( $ devices as $ device ) { if ( false === $ adapter -> supports ( $ device -> getToken ( ) ) ) { throw new AdapterException ( sprintf ( 'Adapter %s does not support %s token\'s device' , ( string ) $ adapter , $ device -> getToken ( ) ) ) ; } } }
Check devices tokens.
@throws \Sly\NotificationPusher\Exception\AdapterException
Check devices tokens .