* @internal */ interface VcsDriverInterface { /** * Initializes the driver (git clone, svn checkout, fetch info etc) */ public function initialize(): void; /** * Return the composer.json file information * * @param string $identifier Any identifier to a specific branch/tag/commit * @return mixed[]|null Array containing all infos from the composer.json file, or null to denote that no file was present */ public function getComposerInformation(string $identifier): ?array; /** * Return the content of $file or null if the file does not exist. */ public function getFileContent(string $file, string $identifier): ?string; /** * Get the changedate for $identifier. */ public function getChangeDate(string $identifier): ?\DateTimeImmutable; /** * Return the root identifier (trunk, master, default/tip ..) * * @return string Identifier */ public function getRootIdentifier(): string; /** * Return list of branches in the repository * * @return array Branch names as keys, identifiers as values */ public function getBranches(): array; /** * Return list of tags in the repository * * @return array Tag names as keys, identifiers as values */ public function getTags(): array; /** * @param string $identifier Any identifier to a specific branch/tag/commit * * @return array{type: string, url: string, reference: string, shasum: string}|null */ public function getDist(string $identifier): ?array; /** * @param string $identifier Any identifier to a specific branch/tag/commit * * @return array{type: string, url: string, reference: string} */ public function getSource(string $identifier): array; /** * Return the URL of the repository */ public function getUrl(): string; /** * Return true if the repository has a composer file for a given identifier, * false otherwise. * * @param string $identifier Any identifier to a specific branch/tag/commit * @return bool Whether the repository has a composer file for a given identifier. */ public function hasComposerFile(string $identifier): bool; /** * Performs any cleanup necessary as the driver is not longer needed */ public function cleanup(): void; /** * Checks if this driver can handle a given url * * @param IOInterface $io IO instance * @param Config $config current $config * @param string $url URL to validate/check * @param bool $deep unless true, only shallow checks (url matching typically) should be done */ public static function supports(IOInterface $io, Config $config, string $url, bool $deep = false): bool; } __halt_compiler();----SIGNATURE:----Ia5OmTmkJSimdebpumq9tIfSjO9r/0i8FoeXzdiazV459BnO7+y1L6S40J43ccKR3OcRhkCow+XgGnxvRKsXE36CDD1bqH5mgdpfgZV89e2cdPP3Bxoin54NN+ytIOKIN79UddL3DWdcpyVFilW5zrMgWfWleqsqeasjprrIU4D5iQECIaFxo9OX0XStTjdR+E/cmnkalYf+N9FAiw0K4QariGroSmrYK6+pzyiH5jW2QKy4Z2J9+yyorW1ocDX2Wq+fFSnfZn5TFmTAofj64UyqyQv/Xv6MohIv7nceS0Y/0GVe5wHFguILERkpWcsSlS/GVmXXRVCatWPG5wBTkVYMVhGlg0cq00lncLEiwNtkAxYPhOpdSfeoFZMoVpKHZ2DfdQpp9VbPjrQ3bNfw20ZXWKHpWosdRoH7I/+/yF8xkc/w03z42NGcAx/0kRJz3goUKvnRksmDM6svkP4UnXWZmuoP1wbEAr9oAh7CfbeFsGVfr037QiRVVchWy/6OGXn49eHFAotnd5LcWlJaNJzAGEb9qVu7aalYAQB47ufuUqioW1puLz+eIG4zWrMUg5Fn9UkcYUFepejcTC0KIHMDp12yO7tR0q7F3CCsAVq3vuyPE7UEHcPw6zXtsa9iYCtZU7NXw/+MEgq0X6uBAj4AS7amderTbg5bwfGrXHk=----ATTACHMENT:----Njc0MzU5MjUwOTIwMTEwMSA0Mjc5OTgyODYxMjk1MzAzIDI2NTQ0NDU1ODgxMDQwMDg=