1 | <?php |
||
5 | class Str |
||
|
|||
6 | { |
||
7 | private $str = null; |
||
8 | private static $instance = null; |
||
9 | |||
10 | 1 | private function __construct($str = '') { |
|
13 | |||
14 | 1 | public static function clean($str = '') { |
|
21 | |||
22 | /** |
||
23 | * Limpiar la cadena y almacenar. |
||
24 | * |
||
25 | * @param $str string Cadena de caracteres a limpiar. |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | 1 | private function set($str) |
|
38 | |||
39 | /** |
||
40 | * Limpiar una cadena de caracteres. |
||
41 | * |
||
42 | * @param string $str Cadena de caracteres a limpiar. |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | 1 | public function get() |
|
50 | } |