Skip to content

Instantly share code, notes, and snippets.

@ahmed-bhs
Last active October 6, 2018 19:03
Show Gist options
  • Save ahmed-bhs/7c5ef6a4876e5282f64fb10ae14f992e to your computer and use it in GitHub Desktop.
Save ahmed-bhs/7c5ef6a4876e5282f64fb10ae14f992e to your computer and use it in GitHub Desktop.
<?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