mailmotor /
mailmotor-bundle
| 1 | <?php |
||
| 2 | |||
| 3 | namespace MailMotor\Bundle\MailMotorBundle; |
||
| 4 | |||
| 5 | /** |
||
| 6 | * MailMotor |
||
| 7 | * |
||
| 8 | * @author Jeroen Desloovere <[email protected]> |
||
| 9 | */ |
||
| 10 | class MailMotor |
||
| 11 | { |
||
| 12 | /** @var string|null - The default list id */ |
||
| 13 | protected $listId; |
||
| 14 | |||
| 15 | public function __construct(?string $listId) |
||
| 16 | { |
||
| 17 | $this->listId = $listId; |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Get list id |
||
| 22 | * |
||
| 23 | * @param string|null $listId - If you want to use a custom list id |
||
| 24 | * @return string|null |
||
| 25 | */ |
||
| 26 | public function getListId(string $listId = null): ?string |
||
| 27 | { |
||
| 28 | return ($listId == null) ? $this->listId : $listId; |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 29 | } |
||
| 30 | } |
||
| 31 |