| 1 | <?php | ||
| 8 | class ExternalServiceSource implements ExternalService | ||
| 9 | { | ||
| 10 | /** @var ExternalServiceId */ | ||
| 11 | protected $id; | ||
| 12 | /** @var string */ | ||
| 13 | private $name; | ||
| 14 | |||
| 15 | /** | ||
| 16 | * ExternalServiceSource constructor. | ||
| 17 | * | ||
| 18 | * @param ExternalServiceId $id | ||
| 19 | * @param string $name | ||
| 20 | */ | ||
| 21 | public function __construct(ExternalServiceId $id, $name) | ||
| 26 | |||
| 27 | /** | ||
| 28 | * @return ExternalServiceId | ||
| 29 | */ | ||
| 30 | public function getId() | ||
| 34 | |||
| 35 | /** | ||
| 36 | * @return string | ||
| 37 | */ | ||
| 38 | public function getName() | ||
| 42 | } | ||
| 43 |