src/Validation/Validator.php
protected static function getValue($param)
    {
        $data = explode(':', $param);

        $result = ['rule' => trim($data[0])];

        $result['value'] = count($data) > 1 ? $data[1] : null;

        return $result;
    }
protected static function getValue($param)
    {
        $data = explode(':', $param);

        $result = ['rule' => trim($data[0])];

        $result['value'] = count($data) > 1 ? $data[1] : null;

        return $result;
    }
protected static function getValue ( $ param ) { $ data = explode ( ':' , $ param ) ; $ result = [ 'rule' => trim ( $ data [ 0 ] ) ] ; $ result [ 'value' ] = count ( $ data ) > 1 ? $ data [ 1 ] : null ; return $ result ; }
Get value of the rule.

@param string $param

@return array
Get value of the rule .