for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Push notification services abstraction (http://github.com/juliangut/tify)
*
* @link https://github.com/juliangut/tify for the canonical source repository
* @license https://github.com/juliangut/tify/blob/master/LICENSE
*/
namespace Jgut\Tify\Recipient;
class GcmRecipient extends AbstractRecipient
{
* {@inheritdoc}
* @throws \InvalidArgumentException
public function setToken($token)
$token = trim($token);
if ($token === '') {
throw new \InvalidArgumentException('GCM token can not be empty');
}
$this->token = $token;
return $this;