Returns the requested annotation.
@param string $name
@return Annotation|null
555303
public function getAnnotation($name)
    {
        $result = null;

        if ($this->hasAnnotationAndReturn($name))
        {
            if (!string_ends_with($name, 'Annotation')) $name .= 'Annotation';

            $result = isset($this->annotations[$name]) ? $this->annotations[$name] : null;

            if ($result == null)
            {
                if (string_starts_with($name, '\\'))
                    $name = substr($name, 1, strlen($name) - 1);
                else
                    $name = '\\' . $name;

                $result = isset($this->annotations[$name]) ? $this->annotations[$name] : null;
            }

            $result = $this->evaluateAnnotation($result);
        }

        return $result;
    }
1252224
public function get($name)
    {
        $input = null;
        if ($this->has($name)) {
            $input = $this->_inputs[$name];
        }
        return $input;
    }
557573
public function get($name) {
        return isset($this->metadata[$name]) ? $this->metadata[$name] : null;
    }
1071567
public function getDefinition($name)
    {
        if (!class_exists($name) && !interface_exists($name)) {
            return null;
        }

        $class = new \ReflectionClass($name);
        if(isset($name::$__enableDIAnnotations__) && $name::$__enableDIAnnotations__){
            $context = $this->loader->build($name);
            /**@var $context ObjectDefinitionContext */
            $definition = $context->definition;
        }else{
            $definition = new ObjectDefinition($name);
        }

        $constructor = $class->getConstructor();
        if ($constructor && $constructor->isPublic()) {
            $definition->setConstructorInjection(
                MethodInjection::constructor($this->getParametersDefinition($constructor))
            );
        }

        return $definition;
    }
1141060
public function get($name) {

		if ( array_key_exists( $name, $this->_properties )) {
			return $this->_properties[$name];

		} else if ( isset($this->$name) ) {
			return $this->$name;
		}

		return null;
	}
350937
public static function getPlugin(string $name)
    {
        if (isset(self::$plugins[$name])) {
            return self::$plugins[$name];
        }
        $class = '\\sdopx\\plugin\\' . Utils::toCamel($name) . 'Plugin';
        if (class_exists($class)) {
            self::$plugins[$name] = new $class();
            return self::$plugins[$name];
        }
        return null;
    }
534947
protected function getAnnotation($reflection, $name)
	{
		$res = $reflection->getAnnotations();

		if (isset($res[$name]))
		{
			if (sizeof($res[$name]) > 1)
			{
				return $res[$name];
			}

			return end($res[$name]);
		}

		return NULL;
	}
286451
public function get(string $name): ?string
    {
        $key = strtolower($name);
        if (!isset($this->headers[$key])) {
            return null;
        }

        return $this->headers[$key][1];
    }
556050
public function getArgument($name)
    {
        if (isset($this->arguments[$name])) {
            return $this->arguments[$name];
        }
        return null;
    }
934560
public function get($name)
    {
        if (isset($this->_loaded[$name])) {
            return $this->_loaded[$name];
        }

        return null;
    }
758187
public function getNamedRoute($name)
    {
        $this->getNamedRoutes();
        if ($this->hasNamedRoute($name)) {
            return $this->namedRoutes[(string) $name];
        } else {
            return null;
        }
    }
497978
public function getAnnotation($name, $method = null, $default = false)
    {
        $value = $this->getClassAnnotation($name, $default);

        if ($method !== null) {
            $value = $this->getMethodAnnotation($method, $name, $value);
        }

        return $value;
    }
594987
public function getMethod($name)
    {
        if (parent::hasMethod($name) == false) {
            return null;
        }
        
        $moufRefMethod = new MoufReflectionMethod($this, $name);
        return $moufRefMethod;
    }
1239426
public function getDrupalParameter($name)
    {
        return isset($this->drupalParameters[$name]) ? $this->drupalParameters[$name] : null;
    }
1216834
public function get($name)
    {
        if ($this->argument->defined($name)) {
            return $this->argument->get($name);
        }
        return null;
    }
649672
public function findDefinition(string $name)
    {
        $name = $this->normalizeDefinitionName($name);

        foreach ($this->definitions as $definition) {
            if ($definition->getName() === $name) {
                return $definition;
            }
        }

        return null;
    }
1086665
public function getParameterByName($name)
    {
        foreach ($this->parameters as $parameter) {
            if ($parameter->getName() === $name) {
                return $parameter;
            }
        }

        return null;
    }