src/Api/Service.php
public function getOperation($name)
    {
        if (!isset($this->operations[$name])) {
            if (!isset($this->definition['operations'][$name])) {
                throw new \InvalidArgumentException("Unknown operation: $name");
            }
            $this->operations[$name] = new Operation(
                $this->definition['operations'][$name],
                $this->shapeMap
            );
        }

        return $this->operations[$name];
    }
public function getOperation($name)
    {
        if (!isset($this->operations[$name])) {
            if (!isset($this->definition['operations'][$name])) {
                throw new \InvalidArgumentException("Unknown operation: $name");
            }
            $this->operations[$name] = new Operation(
                $this->definition['operations'][$name],
                $this->shapeMap
            );
        }

        return $this->operations[$name];
    }
public function getOperation ( $ name ) { if ( ! isset ( $ this -> operations [ $ name ] ) ) { if ( ! isset ( $ this -> definition [ 'operations' ] [ $ name ] ) ) { throw new \ InvalidArgumentException ( "Unknown operation: $name" ) ; } $ this -> operations [ $ name ] = new Operation ( $ this -> definition [ 'operations' ] [ $ name ] , $ this -> shapeMap ) ; } return $ this -> operations [ $ name ] ; }
Get an operation by name.

@param string $name Operation to retrieve by name

@return Operation
@throws \InvalidArgumentException If the operation is not found
Get an operation by name .