Returns one notifiable by name

@param $name

@return array

@throws \InvalidArgumentException
@throws \RuntimeException
8711
public function getNotifiable($name)
    {
        $notifiables = $this->getDiscoveryNotifiables();
        if (isset($notifiables[$name])) {
            return $notifiables[$name];
        }

        throw new \RuntimeException('Notifiable not found.');
    }
120631
public static function getDescriptionByName($name)
    {
        $key = strtoupper($name);
        if (isset(self::$availableNameList[$key])) {
            return self::$availableNameList[$key];
        } else {
            return false;
        }
    }
218416
public function get($name)
    {
        if (!$this->has($name)) {
            throw new \RuntimeException(sprintf('Cannot get non existing dimension "%s"', $name));
        }

        return $this->stats[$name]['value'];
    }
703397
public function _get($name)
    {
        $getMethod = 'get' . ucfirst($name);
        if (method_exists($this, $getMethod)) {
            return $this->$getMethod();
        }
        throw new \InvalidArgumentException(sprintf('Getter does not exist for "%s" property', $name));
    }
280919
protected function load($name)
    {
        if ($name instanceof \Twig_Template) {
            return $name;
        }

        try {
            return $this->environment->loadTemplate($name);
        } catch (\Twig_Error_Loader $e) {
            throw new \InvalidArgumentException($e->getMessage(), $e->getCode(), $e);
        }
    }
1298651
public static function get($name)
	{
		$args = func_get_args();
		if (!empty($args))
		{
			unset($args[0]);
		}
		if (isset(self::$list[$name]))
		{
			array_unshift($args, self::$list[$name]);
			return call_user_func_array('sprintf', $args);
		}
		else
		{
			return $name;
		}
	}
784044
public function getMonitorFrom($name = null)
    {
        if ($name) {
            if (isset($this['monitor'], $this['monitor'][$name], $this['monitor'][$name]['from']) &&
                    trim($this['monitor'][$name]['from'])) {
                return $this['monitor'][$name]['from'];
            }
        }
        if (isset($this['monitor'], $this['monitor']['default'], $this['monitor']['default']['from']) &&
                trim($this['monitor']['default']['from'])) {
            return $this['monitor']['default']['from'];
        }

        $email = $this->getSiteEmail();
        if ($email) {
            return $email;
        }

        return 'noreply@gemstracker.org';
    }
301938
protected function getNotification($name, $status = FALSE)
    {
        //If $status is FALSE show primary notification
        if($status === FALSE)
        {
            //Generate a message
            if($this->commandExists('notify-send'))
            {
                shell_exec('notify-send "'.$this->getAppName().' Tasks"  "Running '.$name.'..." -i dialog-information');
            }
            //Show required message
            echo "\n";
            echo "\t", $this->colorize('Running '.$name.'...', 'info');
            echo "\n";
        }
        else
        {
            //If $status is TRUE show success notification
            //Generate a message
            if($this->commandExists('notify-send'))
            {
                shell_exec('notify-send "'.$this->getAppName().' Tasks" "'.$name.' Task Completed!" -i dialog-ok');
            }
            //Show required message
            echo "\n";
            echo "\t", $this->colorize($name.' Task Completed!', 'success');
            echo "\n";
        }
    }
695497
public function api($name)
    {
        if (!is_string($name) || $name === '') {
            throw new \InvalidArgumentException('No child specified.');
        }

        /** @var Api $child */
        $class = '\\Bitbucket\\API\\'.$name;

        if (!class_exists($class)) {
            throw new \InvalidArgumentException(sprintf('No such child class [%s].', $name));
        }

        $child = new $class();
        $child->setClient($this->getClient());

        if ($this->getClient()->hasListeners()) {
            $child->getClient()->setListeners($this->getClient()->getListeners());
        }

        return $child;
    }
824042
public function getRouteDefinition(string $name):array
    {
        $this->prepare();

        if (!isset($this->routes[$name]) || !is_array($this->routes[$name])) {
            throw new \RuntimeException(sprintf(
                'Route "%s" does not exist or not array.',
                $name
            ));
        }

        return $this->routes[$name];
    }
1114784
protected function getTid($name)
    {
        $tid  = Coroutine::tid();
        $mode = $this->getCoroutineMode($name);
        if ($mode === false) {
            $tid = -2;
        }
        if ($mode == ComponentInterface::COROUTINE_MODE_REFERENCE) {
            $tid = -1;
        }
        return $tid;
    }
1103158
public function getArgument($name) {
        if (!$this->definition->hasArgument($name)) {
            throw new \InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
        }

        return isset($this->arguments[$name]) ? $this->arguments[$name] : $this->definition->getArgument($name)
            ->getDefault();
    }
241466
protected function load($name)
    {
        if ($name instanceof Template) {
            return $name;
        }

        try {
            return $this->environment->loadTemplate((string) $name);
        } catch (LoaderError $e) {
            throw new \InvalidArgumentException($e->getMessage(), $e->getCode(), $e);
        }
    }
1252110
public function get($name)
    {
        $lowerName = strtolower($name);
        if (isset($this->properties[$lowerName])) {
            return $this->properties[$lowerName];
        }
        throw new \InvalidArgumentException(
            "Undefined property: $name (Node ID: ".$this->properties['id'].')'
        );
    }
692738
public function getMessageDefaultsForClient($name)
    {
        return array_merge(
            Arr::get($this->clientsDefaults, 'message_defaults', []),
            Arr::get($this->clientsConfig[$name], 'message_defaults', [])
        );
    }
887797
protected function get($name) {
$current = $this->env;

$isArguments = $name == $this->vPrefix . 'arguments';
while ($current) {
if ($isArguments && isset($current->arguments)) {
return array('list', ' ', $current->arguments);
}

if (isset($current->store[$name]))
return $current->store[$name];
else {
$current = isset($current->storeParent) ?
$current->storeParent : $current->parent;
}
}

$this->throwError("variable $name is undefined");
}
730155
public function getPushHandler($name)
    {
        if (!$this->hasPushHandler($name)) {
            throw new \InvalidArgumentException(sprintf('A push handler named "%s" has not been registered.', $name));
        }

        return $this->pushHandlers[$name];
    }