Retrieve all Ontraport objects.

@param  string  $name
@return mixed
5251
public function get($name = null)
    {
        if (is_null($name)) {
            return $this->all();
        }

        return $this->find($name);
    }
372945
public function getTraitByName($name)
    {
        $variables = [];
        foreach ($this->collection as $trait) {
            if (\is_array($name)) {
                $variables = \reset($name);
                $name = \key($name);
            }
            /** @var $trait TraitDefinition */
            if ($trait->getName() === $name) {
                return $trait->parseVariables($variables);
            }
        }

        throw new Exception(\sprintf('No trait found for name %s, list: %s', \var_export($name, true), \var_export($this->collection, true)));
    }
1273709
public function get($name)
    {
        if (!$this->hasRoute($name)) {
            throw new Exception\MissingRoute($name);
        }

        return $this->nameCache[$name];
    }
939432
public function getRouteByName($name)
    {
        if (!isset($this->routes[$name])) {
            return null;
        }
        return $this->routes[$name];
    }
1320117
public function getParameters(string $name = null)
    {
        if (is_null($name)) {
            return $this->getRoute('parameters');
        }

        return $this->getRoute('parameters', $name);
    }
266070
public function search($name)
    {
        $handles = $this->client
            ->DebtorContact_FindByName(array('name'=>$name))
            ->DebtorContact_FindByNameResult
            ->DebtorContactHandle;

        return $this->getArrayFromHandles($handles);
    }
1269370
public function get($name)
    {
        if (!isset($this->items[$name])
            && !array_key_exists($name, $this->items)
            && !$this->applyDefaultValue($name)
        ) {
            throw new \OutOfBoundsException(sprintf('Undefined data item index: %s.', $name));
        };

        return $this->items[$name];
    }
507875
public function offsetGet($name)
    {
        if(isset($this->routes[$name]))
            return $this->routes[$name];

        $route = $this->factory->createRoute($this, $name, array());

        $this->addRoute($route);

        return $this->routes[$name] = $route;
    }
295274
public function getRoute($name)
    {
        if (empty($name)) {
            throw new \InvalidArgumentException("Route name not provided.");
        }

        // TODO: This is not very efficient, maybe find a better way
        foreach ($this->routes as $route) {
            if ($route->getName() === $name) {
                return $route;
            }
        }

        throw new \Exception("Route \"$name\" not found.");
    }
516082
public function get(string $name)
    {
        $claims = $this->getAll();

        if (!array_key_exists($name, $claims)) {
            return null;
        }

        return $claims[$name];
    }
160220
static public function getRoute($name) {
        $route_by_name = isset(self::$_stored_names[$name]) ?
            self::$_stored_names[$name] :
            null;
        
        if (!is_null($route_by_name) && isset(self::$_stored_routes[$route_by_name])) {
            return self::$_stored_routes[$route_by_name];
        }

        return null;
    }
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];
    }
500902
public function getData($name)
    {
        if (!array_key_exists($name, $this->datas)) {
            return null;
        }
        return $this->datas[$name];
    }
1012532
public function get($name)
    {
        return isset($this->items[$name]) ? $this->items[$name] : null;
    }
523588
public function getGet($name = null)
    {
        if ($name !== null) {
            return isset($this->getParams[$name]) ? $this->getParams[$name] : null;
        }

        return $this->getParams;
    }
1196620
public function get($name)
    {
        if (isset($this->_handlers[$name])) {
           return $this->_handlers[$name];
        }
        $checker = $this->_classes['checker'];
        if ($checker::has($name)) {
           return $checker::get($name);
        }
        throw new InvalidArgumentException("Unexisting `{$name}` as validation handler.");
    }
18116
public function get( $name )
	{
		if ($this->offsetExists($name))
		{
			return $this->items[$name];
		}
		return $this->itemsGetUndefined;
	}