Returns an operation provided by the service based on its name.

@param string $operationName The name of the operation.

@return Operation|null The operation or null if it does not exist.
765508
public function getOperation($operationName)
    {
        return isset($this->operations[$operationName])? $this->operations[$operationName]: null;
    }
408418
protected function _getOperationName()
    {
        $operation = lcfirst($this->_getContainer()->getConfig()->getRequestParameter('operation'));

        if (method_exists($this->_getContainer()->getClient(), $operation)) {
            return $operation;
        }

        $this->setViewData(array('sError' => "Operation '{$operation}' does not exist"));
        return false;
    }
1076873
public function getByClassname(string $classname)
    {
        foreach ($this->container as $value) {
            if (is_object($value) && $value instanceof $classname) {
                return $value;
            }
        }

        return null;
    }
202815
public function get(string $modName): ?Mod
    {
        $this->loadMods();
        return $this->mods[$modName] ?? null;
    }
929430
function &methodNamed($methodName)
    {
        $return = NULL;
        if (isset($this->_methods[$methodName])) {
            $return =& $this->_methods[$methodName];
        }

        return $return;
    }
973759
public function create( $serviceName ) {

		if ( is_string( $serviceName ) && isset( $this->aliases[$serviceName] ) ) {
			$serviceName = $this->aliases[$serviceName];
		}

		return $this->getReturnValueFromCallbackHandlerFor( $serviceName, func_get_args() );
	}
449106
public function getCollectionOperationAttribute(?string $operationName, string $key, $defaultValue = null, bool $resourceFallback = false)
    {
        return $this->findOperationAttribute($this->collectionOperations, $operationName, $key, $defaultValue, $resourceFallback);
    }
401052
public function get($columnName)
    {
        if (isset($this->filterDefinitions[$columnName])) {
            return $this->filterDefinitions[$columnName];
        }

        return null;
    }
232867
public function load($serviceName = null)
    {
        if (null === $serviceName) {
            $this->serviceProvider->loadAllServices();
        } else {
            $this->serviceProvider->loadService($serviceName);
        }

        // allow chaining
        return $this;
    }
376033
public <T> T getService(String serviceName) {
    T service = findService(serviceName, true);
    if (service == null) {
      throw new IllegalArgumentException(format("No service found named \"%s\"", serviceName));
    }

    return service;
  }
1069453
public function getResult($jobname)
    {
        return isset($this->results[$jobname]) ? $this->results[$jobname] : null;
    }
123248
public function get($serviceName, array $args = [])
    {
        if ($this->getContainer()->has($serviceName)) {
            return $this->getContainer()->get($serviceName, $args);
        }

        return null;
    }
1323837
public static function getService(string $appName = null) : ServiceLocator
    {
        if ($appName == null) {
            return self::getDefault();
        }

        if (! self::exist($appName)) {
            throw new \RuntimeException(
                sprintf(
                    'Service %s has not found.',
                    $appName
                ),
                E_WARNING
            );
        }

        return self::$serviceCollections[$appName];
    }
772430
public function get($name)
    {
        if (!isset($this->services[$name])) {
            throw ServiceNotFoundException::fromName($name);
        }

        return $this->services[$name]($this);
    }
988940
public static function getOperationId($chainName, $operationName)
    {
        if (!isset(self::$opMap[$chainName])) {
            if ($chainName === ConnectorInterface::PLATFORM_GOLOS) {
                $op = ChainOperationsGolos::IDS;
            } elseif ($chainName === ConnectorInterface::PLATFORM_STEEMIT) {
                $op = ChainOperationsSteem::IDS;
            } elseif ($chainName === ConnectorInterface::PLATFORM_VIZ) {
                $op = ChainOperationsViz::IDS;
            } elseif ($chainName === ConnectorInterface::PLATFORM_WHALESHARES) {
                $op = ChainOperationsWhaleshares::IDS;
            } else {
                throw new \Exception("There is no operations id's for '{$chainName}'");
            }
            self::$opMap[$chainName] = $op;
        }

        if (!isset(self::$opMap[$chainName][$operationName])) {
            throw new \Exception("There is no information about operation:'{$operationName}'. Please add ID for this operation");
        }

        return self::$opMap[$chainName][$operationName];
    }
1220493
function _findOperator($name)
    {
        if (empty($name)) {
            return '==';
        } elseif (isset($this->_operators[$name])) {
            return $this->_operators[$name];
        } elseif (in_array($name, $this->_operators)) {
            return $name;
        } else {
            return '==';
        }
    }
1329092
public function getIndex($indexName)
    {
        if (isset($this->indexes[$indexName])) {
            return $this->indexes[$indexName];
        }
        return null;
    }