Add getter for simple array of mobile numbers
This commit is contained in:
parent
692f2b0136
commit
2572b0284d
1 changed files with 9 additions and 0 deletions
|
|
@ -116,6 +116,15 @@ class Customer
|
|||
return $this->numbers;
|
||||
}
|
||||
|
||||
public function getMobileNumberList()
|
||||
{
|
||||
$numbers = [];
|
||||
foreach ($this->numbers as $number)
|
||||
$numbers[] = $number->getID();
|
||||
|
||||
return $numbers;
|
||||
}
|
||||
|
||||
public function addMobileSession(MobileSession $session)
|
||||
{
|
||||
$this->sessions->add($session);
|
||||
|
|
|
|||
Loading…
Reference in a new issue