src/Brosland/UI/SecurityPresenter.php
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;
	}
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;
	}
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 ; }
Get all anotations of given name

@param object $reflection
@param string $name
@return mixed|null
Get all anotations of given name