public function getAttribute($name) {

	    $key = strtolower($name);

	    if('value' === $key) {
	        return $this->getValue();
        }
        if('name' === $key) {
            return $this->getName();
        }


	    if(array_key_exists($key, $this->attributes)) {

	        return $this->attributes[strtolower($name)];

        }

	    return null;

    }
public function getAttribute($name) {

	    $key = strtolower($name);

	    if('value' === $key) {
	        return $this->getValue();
        }
        if('name' === $key) {
            return $this->getName();
        }


	    if(array_key_exists($key, $this->attributes)) {

	        return $this->attributes[strtolower($name)];

        }

	    return null;

    }
public function getAttribute ( $ name ) { $ key = strtolower ( $ name ) ; if ( 'value' === $ key ) { return $ this -> getValue ( ) ; } if ( 'name' === $ key ) { return $ this -> getName ( ) ; } if ( array_key_exists ( $ key , $ this -> attributes ) ) { return $ this -> attributes [ strtolower ( $ name ) ] ; } return null ; }
get a single attribute
name and value attributes are redirected to
the respective getter methods

@param $name
@return string|null
get a single attribute name and value attributes are redirected to the respective getter methods