public function compile() { if ($this->isNull($this->compiledRoute)) { $this->compiledRoute = RouteCompiler::compile($this); } return $this->compiledRoute; }