src/Core/AbstractStack.php
public function getStackOperationsByName($name)
    {
        $stackOperations = [];
        foreach ($this->stackOperations as $stackOperation) {
            if ($stackOperation->name === $name) {
                $stackOperations[] = $stackOperation;
            }
        }

        return $stackOperations;
    }
public function getStackOperationsByName($name)
    {
        $stackOperations = [];
        foreach ($this->stackOperations as $stackOperation) {
            if ($stackOperation->name === $name) {
                $stackOperations[] = $stackOperation;
            }
        }

        return $stackOperations;
    }
public function getStackOperationsByName ( $ name ) { $ stackOperations = [ ] ; foreach ( $ this -> stackOperations as $ stackOperation ) { if ( $ stackOperation -> name === $ name ) { $ stackOperations [ ] = $ stackOperation ; } } return $ stackOperations ; }
Returns all operations matching name.

@since 1.2.0

@param string $name operation name

@return StackOperation[]
Returns all operations matching name .