file = $file; } /** * * Invokes the closure to include the file. * * @return mixed The return from the included file, if any. * */ public function __invoke() { $filename = $this->file; if ($filename instanceof LazyInterface) { $filename = $filename->__invoke(); } return include $filename; } }