{"id":23740547,"url":"https://github.com/shindakioku/overload","last_synced_at":"2025-10-25T23:36:36.739Z","repository":{"id":57049402,"uuid":"96097130","full_name":"shindakioku/overload","owner":"shindakioku","description":"Package for overload in php","archived":false,"fork":false,"pushed_at":"2017-08-18T10:08:58.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T09:50:44.288Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shindakioku.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-03T09:59:51.000Z","updated_at":"2021-03-05T13:18:39.000Z","dependencies_parsed_at":"2022-08-23T19:10:16.859Z","dependency_job_id":null,"html_url":"https://github.com/shindakioku/overload","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shindakioku%2Foverload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shindakioku%2Foverload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shindakioku%2Foverload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shindakioku%2Foverload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shindakioku","download_url":"https://codeload.github.com/shindakioku/overload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239886919,"owners_count":19713570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-31T09:50:48.525Z","updated_at":"2025-10-25T23:36:31.716Z","avatar_url":"https://github.com/shindakioku.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Класс который делает немного магии\n\nКласс позволяет Вам использовать перегрузку методов (ad hoc) на 40%.\n\nПочему 40? В пхп не разрешено объявлять методы с одинаковыми именами.\n\nИспользование класса:\n\n```php\nclass Bar {}\n\nclass Foo\n{\n    public function withoutArguments(): string\n    {\n        return 'string';\n    }\n\n    public function argument1(string $name): string\n    {\n        return $name;\n    }\n\n    public function argument2(int $number): int\n    {\n        return $number;\n    }\n\n    public function withObject(Bar $bar): Bar\n    {\n        return $bar;\n    }\n}\n\n$overload = new Overload\\Overload(\n    new Overload\\OverloadClass(Foo::class), 'argument1', 'argument2'\n);\n\n$overload-\u003ecall('shinda'); // argument1\n$overload-\u003ecall(2); // argument2\n\n$bar = (new Overload\\Overload(\n    new Overload\\OverloadClass(Foo::class), 'withObject'\n))-\u003ecall(new Bar); // $bar = Bar object;\n\n(new Overload\\Overload(\n        new Overload\\OverloadClass(Foo::class), 'withoutArguments'\n    ))-\u003ecall(); // 'string'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshindakioku%2Foverload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshindakioku%2Foverload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshindakioku%2Foverload/lists"}