1 | <?php |
||
21 | class CaseTransformer implements CaseTransformerInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var FormatInterface Initial case format |
||
25 | */ |
||
26 | protected $from; |
||
27 | |||
28 | /** |
||
29 | * @var FormatInterface Final case format |
||
30 | */ |
||
31 | protected $to; |
||
32 | |||
33 | /** |
||
34 | * @param FormatInterface $from |
||
35 | * @param FormatInterface $to |
||
36 | */ |
||
37 | public function __construct(FormatInterface $from, FormatInterface $to) |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function transform($word) |
||
52 | } |