Last active
October 6, 2018 19:03
-
-
Save ahmed-bhs/7c5ef6a4876e5282f64fb10ae14f992e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by PhpStorm. | |
* User: ahmedbhs | |
* Date: 29/09/18 | |
* Time: 18:19 | |
*/ | |
namespace App\Message; | |
class SendNotification | |
{ | |
private $message; | |
private $users; | |
public function __construct(string $message, array $users = []) | |
{ | |
$this->message = $message; | |
$this->users = $users; | |
} | |
/** | |
* @param string $message | |
*/ | |
public function setMessage(string $message): void | |
{ | |
$this->message = $message; | |
} | |
/** | |
* @return string | |
*/ | |
public function getMessage(): string | |
{ | |
return $this->message; | |
} | |
/** | |
* @return array | |
*/ | |
public function getUsers(): array | |
{ | |
return $this->users; | |
} | |
/** | |
* @param array $users | |
*/ | |
public function setUsers(array $users): void | |
{ | |
$this->users = $users; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment