20 lines
359 B
PHP
20 lines
359 B
PHP
<?php
|
|
|
|
class Receiver extends Model
|
|
{
|
|
public function __construct($id)
|
|
{
|
|
parent::__construct($id);
|
|
}
|
|
|
|
/**
|
|
* Get receiving station
|
|
*
|
|
* @return Station
|
|
*/
|
|
public function getReceiverStationObject()
|
|
{
|
|
return StationRepository::getInstance()->getObjectByNameAndSenderId($this->name, $this->id);
|
|
}
|
|
}
|