src/Phug/Formatter/Element/AbstractMarkupElement.php
public function belongsTo(array $tagList)
    {
        if (is_string($this->getName())) {
            return in_array(strtolower($this->getName()), $tagList);
        }

        return false;
    }
public function belongsTo(array $tagList)
    {
        if (is_string($this->getName())) {
            return in_array(strtolower($this->getName()), $tagList);
        }

        return false;
    }
public function belongsTo ( array $ tagList ) { if ( is_string ( $ this -> getName ( ) ) ) { return in_array ( strtolower ( $ this -> getName ( ) ) , $ tagList ) ; } return false ; }
Return true if the tag name is in the given list.

@param array $tagList

@return bool
Return true if the tag name is in the given list .