public function addDevice($device)
    {
        if (!isset($this->devices)) {
            $this->devices = [];
        }

        $this->devices[] = $device;

        return $this;
    }
public function addDevice($device)
    {
        if (!isset($this->devices)) {
            $this->devices = [];
        }

        $this->devices[] = $device;

        return $this;
    }
public function addDevice ( $ device ) { if ( ! isset ( $ this -> devices ) ) { $ this -> devices = [ ] ; } $ this -> devices [ ] = $ device ; return $ this ; }
Adds a new device Token to the list of device tokens to identify the devices to send the notification to.

@param string $device the new device Token to add.

@return \Gomoob\Pushwoosh\Model\Notification\Notification this instance.
Adds a new device Token to the list of device tokens to identify the devices to send the notification to .