public function getAttribute( $name ) {
        if( key_exists( $name, $this->attrs ) ) {
            return $this->attrs[$name];
        } else {
            return null;
        }
    }
public function getAttribute( $name ) {
        if( key_exists( $name, $this->attrs ) ) {
            return $this->attrs[$name];
        } else {
            return null;
        }
    }
public function getAttribute ( $ name ) { if ( key_exists ( $ name , $ this -> attrs ) ) { return $ this -> attrs [ $ name ] ; } else { return null ; } }
Gets an attribute given the attribute name.

@param $name The name of the attribute.
Gets an attribute given the attribute name .