1 | <?php |
||
10 | class BooleanFunctions extends AbstractConvertor |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | 80 | public function getMatchers(): array |
|
30 | |||
31 | /** |
||
32 | * Convert a call to boolean() with a param |
||
33 | * |
||
34 | * @param string $expr |
||
35 | * @return string |
||
36 | */ |
||
37 | 2 | public function parseBooleanParam($expr) |
|
41 | |||
42 | /** |
||
43 | * Convert a call to boolean() with an attribute |
||
44 | * |
||
45 | * @param string $expr |
||
46 | * @return string |
||
47 | */ |
||
48 | 1 | public function parseHasAttribute($expr) |
|
54 | |||
55 | /** |
||
56 | * Convert a call to boolean(@*) |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | 1 | public function parseHasAttributes() |
|
64 | |||
65 | /** |
||
66 | * Convert a call to not() with a boolean expression |
||
67 | * |
||
68 | * @param string $expr |
||
69 | * @return string |
||
70 | */ |
||
71 | 1 | public function parseNot($expr) |
|
75 | |||
76 | /** |
||
77 | * Convert a call to not() with an attribute |
||
78 | * |
||
79 | * @param string $expr |
||
80 | * @return string |
||
81 | */ |
||
82 | 1 | public function parseNotAttribute($expr) |
|
88 | |||
89 | /** |
||
90 | * Convert a call to not() with a param |
||
91 | * |
||
92 | * @param string $expr |
||
93 | * @return string |
||
94 | */ |
||
95 | 1 | public function parseNotParam($expr) |
|
99 | } |