public function getPattern()
    {
        $pattern = null;

        if ($patternNodes = $this->element->getElementsByTagName('pattern')) {
            if ($patternNodes->length > 0) {
                $pattern = $patternNodes->item(0)->getAttribute('value');
            }
        }

        return $pattern;
    }
public function getPattern()
    {
        $pattern = null;

        if ($patternNodes = $this->element->getElementsByTagName('pattern')) {
            if ($patternNodes->length > 0) {
                $pattern = $patternNodes->item(0)->getAttribute('value');
            }
        }

        return $pattern;
    }
public function getPattern ( ) { $ pattern = null ; if ( $ patternNodes = $ this -> element -> getElementsByTagName ( 'pattern' ) ) { if ( $ patternNodes -> length > 0 ) { $ pattern = $ patternNodes -> item ( 0 ) -> getAttribute ( 'value' ) ; } } return $ pattern ; }
Returns the pattern which the type represents if any.

@return string The pattern.
Returns the pattern which the type represents if any .