public function createDeviceNotification($title = null, $body = null, $token = array())
    {
        $notification = new DeviceNotification();
        $notification
            ->setTitle($title)
            ->setBody($body);

        if(is_array($token)){
            $notification->setDeviceTokens($token);
        } else {
            $notification->addDeviceToken($token);
        }

        return $notification;
    }