/** * Create a child library * * @param string $path * @return Library */ protected function createChildLibrary($path) { if (Module::isModulePath($path)) { return new Module($path, $this); } if (Library::isLibraryPath($path)) { return new Library($path, $this); } return null; }