| 1 | <?php |
||
| 5 | class Repository |
||
|
|
|||
| 6 | { |
||
| 7 | private $owner; |
||
| 8 | private $name; |
||
| 9 | private $public; |
||
| 10 | private $branches; |
||
| 11 | |||
| 12 | const PublicVisibility = 'public'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string $owner |
||
| 16 | * @param string $name |
||
| 17 | * @param string $visibility |
||
| 18 | */ |
||
| 19 | public function Repository(string $owner, string $name, string $visibility) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public function getFullName(): string |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | public function getPublic(): bool |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $title |
||
| 45 | * @param string $description |
||
| 46 | */ |
||
| 47 | public function createIssue(string $title, string $description) |
||
| 51 | } |
||
| 52 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.