src/SnooPHP/Http/Route.php
public function action(Callable $action = null)
	{
		if ($action) $this->action = $action;
		return $this->action;
	}
public function action(Callable $action = null)
	{
		if ($action) $this->action = $action;
		return $this->action;
	}
public function action ( Callable $ action = null ) { if ( $ action ) $ this -> action = $ action ; return $ this -> action ; }
Get or set route action

@param Callable $action if specified replace current action

@return Callable
Get or set route action