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