1 | <?php |
||
16 | class Value |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $value; |
||
23 | |||
24 | /** |
||
25 | * @param string $string |
||
26 | */ |
||
27 | public function __construct($string) |
||
31 | |||
32 | public function __toString() |
||
36 | |||
37 | /** |
||
38 | * @param string $string |
||
39 | * |
||
40 | * @return $this |
||
41 | */ |
||
42 | public function prepend($string) |
||
48 | |||
49 | /** |
||
50 | * @param string $string |
||
51 | * |
||
52 | * @return $this |
||
53 | */ |
||
54 | public function append($string) |
||
60 | |||
61 | /** |
||
62 | * @param string $string |
||
63 | * |
||
64 | * @return $this |
||
65 | */ |
||
66 | public function deleteTrailing($string) |
||
72 | |||
73 | /** |
||
74 | * @param string $string |
||
75 | * |
||
76 | * @return $this |
||
77 | */ |
||
78 | public function deleteLeading($string) |
||
84 | |||
85 | /** |
||
86 | * @param string|array $mixed String or list of strings |
||
87 | * |
||
88 | * @return boolean |
||
89 | */ |
||
90 | public function contains($mixed) |
||
94 | |||
95 | /** |
||
96 | * @param string|array $with String or list of strings |
||
97 | * |
||
98 | * @return boolean |
||
99 | */ |
||
100 | public function starts($with) |
||
104 | |||
105 | /** |
||
106 | * @param string|array $with String or list of strings |
||
107 | * |
||
108 | * @return boolean |
||
109 | */ |
||
110 | public function ends($with) |
||
114 | |||
115 | /** |
||
116 | * @param string $byString The delimiter string |
||
117 | * |
||
118 | * @return array |
||
119 | */ |
||
120 | public function explode($byString) |
||
124 | } |
||
125 |