src/spec/PathItem.php
public function getOperations()
    {
        $operations = [];
        foreach (static::attributes() as $attribute => $type) {
            if ($type === Operation::class && isset($this->$attribute)) {
                $operations[$attribute] = $this->$attribute;
            }
        }
        return $operations;
    }
public function getOperations()
    {
        $operations = [];
        foreach (static::attributes() as $attribute => $type) {
            if ($type === Operation::class && isset($this->$attribute)) {
                $operations[$attribute] = $this->$attribute;
            }
        }
        return $operations;
    }
public function getOperations ( ) { $ operations = [ ] ; foreach ( static :: attributes ( ) as $ attribute => $ type ) { if ( $ type === Operation :: class && isset ( $ this -> $ attribute ) ) { $ operations [ $ attribute ] = $ this -> $ attribute ; } } return $ operations ; }
Return all operations of this Path.
@return Operation[]
Return all operations of this Path .