for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Fouladgar\MobileVerification\Notifications\Messages;
class MobileVerificationMessage
{
/**
* @var string
*/
protected $token;
protected $to;
* @param $to
*
* @return MobileVerificationMessage
public function to($to): self
$this->to = $to;
return $this;
}
* @param $token
public function token($token): self
$this->token = $token;
* @return Payload
public function getPayload(): Payload
return (new Payload())->setTo($this->to)
->setToken($this->token);