src/Phug/Formatter/Element/AbstractAssignmentContainerElement.php
public function getAssignmentsByName($name)
    {
        $result = [];

        foreach ($this->getAssignments() as $assignment) {
            /* @var AssignmentElement $assignment */
            if ($assignment->getName() === $name) {
                $result[] = $assignment;
            }
        }

        return $result;
    }
public function getAssignmentsByName($name)
    {
        $result = [];

        foreach ($this->getAssignments() as $assignment) {
            /* @var AssignmentElement $assignment */
            if ($assignment->getName() === $name) {
                $result[] = $assignment;
            }
        }

        return $result;
    }
public function getAssignmentsByName ( $ name ) { $ result = [ ] ; foreach ( $ this -> getAssignments ( ) as $ assignment ) { /* @var AssignmentElement $assignment */ if ( $ assignment -> getName ( ) === $ name ) { $ result [ ] = $ assignment ; } } return $ result ; }
Return markup assignments list of a specific name.

@param $name

@return AssignmentElement[]
Return markup assignments list of a specific name .