public function parser($text)
    {
        //Gets all current class methods, except for `parser()` and `remove()`
        $methods = array_diff(get_child_methods(get_class()), ['parser', 'remove']);

        //Calls dynamically each method
        foreach ($methods as $method) {
            $text = call_user_func([$this, $method], $text);
        }

        return $text;
    }
public function parser($text)
    {
        //Gets all current class methods, except for `parser()` and `remove()`
        $methods = array_diff(get_child_methods(get_class()), ['parser', 'remove']);

        //Calls dynamically each method
        foreach ($methods as $method) {
            $text = call_user_func([$this, $method], $text);
        }

        return $text;
    }
public function parser ( $ text ) { //Gets all current class methods, except for `parser()` and `remove()` $ methods = array_diff ( get_child_methods ( get_class ( ) ) , [ 'parser' , 'remove' ] ) ; //Calls dynamically each method foreach ( $ methods as $ method ) { $ text = call_user_func ( [ $ this , $ method ] , $ text ) ; } return $ text ; }
Executes all parsers
@param string $text Text
@return string
Executes all parsers