| 1 | <?php |
||
| 17 | final class ConvertEvent extends Event |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var SourceInterface |
||
| 21 | */ |
||
| 22 | private $source; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $converter; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | private $defaultFormatter; |
||
| 33 | |||
| 34 | public function __construct(SourceInterface $source, string $converter, string $defaultFormatter) |
||
| 40 | |||
| 41 | public function source() : SourceInterface |
||
| 45 | |||
| 46 | public function converter() : string |
||
| 50 | |||
| 51 | public function isConvertedBy(string $requestedConverter) : bool |
||
| 55 | |||
| 56 | public function isFormattedBy(string $requestedFormatter) : bool |
||
| 60 | |||
| 61 | public function isHandledBy(string $requestedConverter, string $requestedFormatter) : bool |
||
| 65 | } |
||
| 66 |