| 1 | <?php |
||
| 13 | abstract class LoggingEndpointFactory implements EndpointFactory |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var LoggerInterface |
||
| 17 | */ |
||
| 18 | protected $logger; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * LoggingEndpointFactory constructor. |
||
| 22 | * @param LoggerInterface $logger |
||
| 23 | */ |
||
| 24 | 2 | public function __construct(LoggerInterface $logger) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @param string $name |
||
| 31 | * @param string $version |
||
| 32 | * @return Endpoint |
||
| 33 | */ |
||
| 34 | 2 | public function getEndpoint(string $name, string $version): Endpoint |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $name |
||
| 43 | * @param string $version |
||
| 44 | * @return LoggingEndpoint |
||
| 45 | */ |
||
| 46 | protected abstract function getLoggingEndpoint(string $name, string $version): LoggingEndpoint; |
||
| 47 | } |
||
| 48 |