1 | <?php |
||
12 | class TypeMatcher extends AbstractMatcher |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $type; |
||
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | * |
||
22 | * @param $actual |
||
23 | * @return Match |
||
24 | */ |
||
25 | public function match($actual) |
||
30 | |||
31 | /** |
||
32 | * Determine if the actual value has the same type as the expected value. Uses the native gettype() |
||
33 | * function to compare. |
||
34 | * |
||
35 | * @param $actual |
||
36 | * @return bool |
||
37 | */ |
||
38 | public function doMatch($actual) |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | * |
||
47 | * @return TemplateInterface |
||
48 | */ |
||
49 | public function getDefaultTemplate() |
||
56 | } |
||
57 |