@@ -12,44 +12,44 @@ |
||
12 | 12 | */ |
13 | 13 | abstract class AbstractPullRequests |
14 | 14 | { |
15 | - /** Api trait */ |
|
16 | - use Api; |
|
15 | + /** Api trait */ |
|
16 | + use Api; |
|
17 | 17 | |
18 | - /** Properties */ |
|
19 | - protected $pullRequests; |
|
18 | + /** Properties */ |
|
19 | + protected $pullRequests; |
|
20 | 20 | |
21 | - /** |
|
22 | - * Constructor |
|
23 | - * |
|
24 | - * @param PullRequests $pullRequests |
|
25 | - */ |
|
26 | - public function __construct(PullRequests $pullRequests) |
|
27 | - { |
|
28 | - $this->setPullRequests($pullRequests); |
|
29 | - $this->setApi($pullRequests->getApi()); |
|
30 | - } |
|
21 | + /** |
|
22 | + * Constructor |
|
23 | + * |
|
24 | + * @param PullRequests $pullRequests |
|
25 | + */ |
|
26 | + public function __construct(PullRequests $pullRequests) |
|
27 | + { |
|
28 | + $this->setPullRequests($pullRequests); |
|
29 | + $this->setApi($pullRequests->getApi()); |
|
30 | + } |
|
31 | 31 | |
32 | - /** |
|
33 | - * Get pullRequests |
|
34 | - * |
|
35 | - * @return PullRequests |
|
36 | - */ |
|
37 | - public function getPullRequests(): PullRequests |
|
38 | - { |
|
39 | - return $this->pullRequests; |
|
40 | - } |
|
32 | + /** |
|
33 | + * Get pullRequests |
|
34 | + * |
|
35 | + * @return PullRequests |
|
36 | + */ |
|
37 | + public function getPullRequests(): PullRequests |
|
38 | + { |
|
39 | + return $this->pullRequests; |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * Set pullRequests |
|
44 | - * |
|
45 | - * @param PullRequests $pullRequests |
|
46 | - * |
|
47 | - * @return AbstractPullRequests |
|
48 | - */ |
|
49 | - public function setPullRequests(PullRequests $pullRequests): AbstractPullRequests |
|
50 | - { |
|
51 | - $this->pullRequests = $pullRequests; |
|
42 | + /** |
|
43 | + * Set pullRequests |
|
44 | + * |
|
45 | + * @param PullRequests $pullRequests |
|
46 | + * |
|
47 | + * @return AbstractPullRequests |
|
48 | + */ |
|
49 | + public function setPullRequests(PullRequests $pullRequests): AbstractPullRequests |
|
50 | + { |
|
51 | + $this->pullRequests = $pullRequests; |
|
52 | 52 | |
53 | - return $this; |
|
54 | - } |
|
53 | + return $this; |
|
54 | + } |
|
55 | 55 | } |
56 | 56 | \ No newline at end of file |
@@ -12,44 +12,44 @@ |
||
12 | 12 | */ |
13 | 13 | abstract class AbstractGists |
14 | 14 | { |
15 | - /** Api trait */ |
|
16 | - use Api; |
|
15 | + /** Api trait */ |
|
16 | + use Api; |
|
17 | 17 | |
18 | - /** Properties */ |
|
19 | - protected $gists; |
|
18 | + /** Properties */ |
|
19 | + protected $gists; |
|
20 | 20 | |
21 | - /** |
|
22 | - * Constructor |
|
23 | - * |
|
24 | - * @param Gists $gists |
|
25 | - */ |
|
26 | - public function __construct(Gists $gists) |
|
27 | - { |
|
28 | - $this->setGists($gists); |
|
29 | - $this->setApi($gists->getApi()); |
|
30 | - } |
|
21 | + /** |
|
22 | + * Constructor |
|
23 | + * |
|
24 | + * @param Gists $gists |
|
25 | + */ |
|
26 | + public function __construct(Gists $gists) |
|
27 | + { |
|
28 | + $this->setGists($gists); |
|
29 | + $this->setApi($gists->getApi()); |
|
30 | + } |
|
31 | 31 | |
32 | - /** |
|
33 | - * Get gists |
|
34 | - * |
|
35 | - * @return Gists |
|
36 | - */ |
|
37 | - public function getGists(): Gists |
|
38 | - { |
|
39 | - return $this->gists; |
|
40 | - } |
|
32 | + /** |
|
33 | + * Get gists |
|
34 | + * |
|
35 | + * @return Gists |
|
36 | + */ |
|
37 | + public function getGists(): Gists |
|
38 | + { |
|
39 | + return $this->gists; |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * Set gists |
|
44 | - * |
|
45 | - * @param Gists $gists |
|
46 | - * |
|
47 | - * @return AbstractGists |
|
48 | - */ |
|
49 | - public function setGists(Gists $gists): AbstractGists |
|
50 | - { |
|
51 | - $this->gists = $gists; |
|
42 | + /** |
|
43 | + * Set gists |
|
44 | + * |
|
45 | + * @param Gists $gists |
|
46 | + * |
|
47 | + * @return AbstractGists |
|
48 | + */ |
|
49 | + public function setGists(Gists $gists): AbstractGists |
|
50 | + { |
|
51 | + $this->gists = $gists; |
|
52 | 52 | |
53 | - return $this; |
|
54 | - } |
|
53 | + return $this; |
|
54 | + } |
|
55 | 55 | } |
56 | 56 | \ No newline at end of file |
@@ -12,44 +12,44 @@ |
||
12 | 12 | */ |
13 | 13 | abstract class AbstractUsers |
14 | 14 | { |
15 | - /** Api trait */ |
|
16 | - use Api; |
|
15 | + /** Api trait */ |
|
16 | + use Api; |
|
17 | 17 | |
18 | - /** Properties */ |
|
19 | - protected $users; |
|
18 | + /** Properties */ |
|
19 | + protected $users; |
|
20 | 20 | |
21 | - /** |
|
22 | - * Constructor |
|
23 | - * |
|
24 | - * @param Users $users |
|
25 | - */ |
|
26 | - public function __construct(Users $users) |
|
27 | - { |
|
28 | - $this->setUsers($users); |
|
29 | - $this->setApi($users->getApi()); |
|
30 | - } |
|
21 | + /** |
|
22 | + * Constructor |
|
23 | + * |
|
24 | + * @param Users $users |
|
25 | + */ |
|
26 | + public function __construct(Users $users) |
|
27 | + { |
|
28 | + $this->setUsers($users); |
|
29 | + $this->setApi($users->getApi()); |
|
30 | + } |
|
31 | 31 | |
32 | - /** |
|
33 | - * Get users |
|
34 | - * |
|
35 | - * @return Users |
|
36 | - */ |
|
37 | - public function getUsers(): Users |
|
38 | - { |
|
39 | - return $this->users; |
|
40 | - } |
|
32 | + /** |
|
33 | + * Get users |
|
34 | + * |
|
35 | + * @return Users |
|
36 | + */ |
|
37 | + public function getUsers(): Users |
|
38 | + { |
|
39 | + return $this->users; |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * Set users |
|
44 | - * |
|
45 | - * @param Users $users |
|
46 | - * |
|
47 | - * @return AbstractUsers |
|
48 | - */ |
|
49 | - public function setUsers(Users $users): AbstractUsers |
|
50 | - { |
|
51 | - $this->users = $users; |
|
42 | + /** |
|
43 | + * Set users |
|
44 | + * |
|
45 | + * @param Users $users |
|
46 | + * |
|
47 | + * @return AbstractUsers |
|
48 | + */ |
|
49 | + public function setUsers(Users $users): AbstractUsers |
|
50 | + { |
|
51 | + $this->users = $users; |
|
52 | 52 | |
53 | - return $this; |
|
54 | - } |
|
53 | + return $this; |
|
54 | + } |
|
55 | 55 | } |
56 | 56 | \ No newline at end of file |
@@ -12,44 +12,44 @@ |
||
12 | 12 | */ |
13 | 13 | abstract class AbstractOrganizations |
14 | 14 | { |
15 | - /** Api trait */ |
|
16 | - use Api; |
|
15 | + /** Api trait */ |
|
16 | + use Api; |
|
17 | 17 | |
18 | - /** Properties */ |
|
19 | - protected $organizations; |
|
18 | + /** Properties */ |
|
19 | + protected $organizations; |
|
20 | 20 | |
21 | - /** |
|
22 | - * Constructor |
|
23 | - * |
|
24 | - * @param Organizations $organizations |
|
25 | - */ |
|
26 | - public function __construct(Organizations $organizations) |
|
27 | - { |
|
28 | - $this->setOrganizations($organizations); |
|
29 | - $this->setApi($organizations->getApi()); |
|
30 | - } |
|
21 | + /** |
|
22 | + * Constructor |
|
23 | + * |
|
24 | + * @param Organizations $organizations |
|
25 | + */ |
|
26 | + public function __construct(Organizations $organizations) |
|
27 | + { |
|
28 | + $this->setOrganizations($organizations); |
|
29 | + $this->setApi($organizations->getApi()); |
|
30 | + } |
|
31 | 31 | |
32 | - /** |
|
33 | - * Get organizations |
|
34 | - * |
|
35 | - * @return Organizations |
|
36 | - */ |
|
37 | - public function getOrganizations(): Organizations |
|
38 | - { |
|
39 | - return $this->organizations; |
|
40 | - } |
|
32 | + /** |
|
33 | + * Get organizations |
|
34 | + * |
|
35 | + * @return Organizations |
|
36 | + */ |
|
37 | + public function getOrganizations(): Organizations |
|
38 | + { |
|
39 | + return $this->organizations; |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * Set organizations |
|
44 | - * |
|
45 | - * @param Organizations $organizations |
|
46 | - * |
|
47 | - * @return AbstractOrganizations |
|
48 | - */ |
|
49 | - public function setOrganizations(Organizations $organizations): AbstractOrganizations |
|
50 | - { |
|
51 | - $this->organizations = $organizations; |
|
42 | + /** |
|
43 | + * Set organizations |
|
44 | + * |
|
45 | + * @param Organizations $organizations |
|
46 | + * |
|
47 | + * @return AbstractOrganizations |
|
48 | + */ |
|
49 | + public function setOrganizations(Organizations $organizations): AbstractOrganizations |
|
50 | + { |
|
51 | + $this->organizations = $organizations; |
|
52 | 52 | |
53 | - return $this; |
|
54 | - } |
|
53 | + return $this; |
|
54 | + } |
|
55 | 55 | } |
56 | 56 | \ No newline at end of file |
@@ -12,44 +12,44 @@ |
||
12 | 12 | */ |
13 | 13 | abstract class AbstractMiscellaneous |
14 | 14 | { |
15 | - /** Api trait */ |
|
16 | - use Api; |
|
15 | + /** Api trait */ |
|
16 | + use Api; |
|
17 | 17 | |
18 | - /** Properties */ |
|
19 | - protected $miscellaneous; |
|
18 | + /** Properties */ |
|
19 | + protected $miscellaneous; |
|
20 | 20 | |
21 | - /** |
|
22 | - * Constructor |
|
23 | - * |
|
24 | - * @param Miscellaneous $miscellaneous |
|
25 | - */ |
|
26 | - public function __construct(Miscellaneous $miscellaneous) |
|
27 | - { |
|
28 | - $this->setMiscellaneous($miscellaneous); |
|
29 | - $this->setApi($miscellaneous->getApi()); |
|
30 | - } |
|
21 | + /** |
|
22 | + * Constructor |
|
23 | + * |
|
24 | + * @param Miscellaneous $miscellaneous |
|
25 | + */ |
|
26 | + public function __construct(Miscellaneous $miscellaneous) |
|
27 | + { |
|
28 | + $this->setMiscellaneous($miscellaneous); |
|
29 | + $this->setApi($miscellaneous->getApi()); |
|
30 | + } |
|
31 | 31 | |
32 | - /** |
|
33 | - * Get miscellaneous |
|
34 | - * |
|
35 | - * @return Miscellaneous |
|
36 | - */ |
|
37 | - public function getMiscellaneous(): Miscellaneous |
|
38 | - { |
|
39 | - return $this->miscellaneous; |
|
40 | - } |
|
32 | + /** |
|
33 | + * Get miscellaneous |
|
34 | + * |
|
35 | + * @return Miscellaneous |
|
36 | + */ |
|
37 | + public function getMiscellaneous(): Miscellaneous |
|
38 | + { |
|
39 | + return $this->miscellaneous; |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * Set miscellaneous |
|
44 | - * |
|
45 | - * @param Miscellaneous $miscellaneous |
|
46 | - * |
|
47 | - * @return AbstractMiscellaneous |
|
48 | - */ |
|
49 | - public function setMiscellaneous(Miscellaneous $miscellaneous): AbstractMiscellaneous |
|
50 | - { |
|
51 | - $this->miscellaneous = $miscellaneous; |
|
42 | + /** |
|
43 | + * Set miscellaneous |
|
44 | + * |
|
45 | + * @param Miscellaneous $miscellaneous |
|
46 | + * |
|
47 | + * @return AbstractMiscellaneous |
|
48 | + */ |
|
49 | + public function setMiscellaneous(Miscellaneous $miscellaneous): AbstractMiscellaneous |
|
50 | + { |
|
51 | + $this->miscellaneous = $miscellaneous; |
|
52 | 52 | |
53 | - return $this; |
|
54 | - } |
|
53 | + return $this; |
|
54 | + } |
|
55 | 55 | } |
56 | 56 | \ No newline at end of file |
@@ -13,38 +13,38 @@ |
||
13 | 13 | class Markdown extends AbstractMiscellaneous |
14 | 14 | { |
15 | 15 | |
16 | - /** |
|
17 | - * Render an arbitrary Markdown document |
|
18 | - * |
|
19 | - * @link https://developer.github.com/v3/markdown/#render-an-arbitrary-markdown-document |
|
20 | - * |
|
21 | - * @param string $text The Markdown text to render |
|
22 | - * @param string $mode The rendering mode. |
|
23 | - * @param string $context The repository context. Only taken into account when rendering as gfm |
|
24 | - * |
|
25 | - * @return array |
|
26 | - */ |
|
27 | - public function render(string $text, string $mode = AbstractApi::MODE_MARKDOWN, string $context = ''): array |
|
28 | - { |
|
29 | - return $this->getApi()->request('/markdown', Request::METHOD_POST, [ |
|
30 | - 'text' => $text, |
|
31 | - 'mode' => $mode, |
|
32 | - 'context' => $context |
|
33 | - ]); |
|
34 | - } |
|
16 | + /** |
|
17 | + * Render an arbitrary Markdown document |
|
18 | + * |
|
19 | + * @link https://developer.github.com/v3/markdown/#render-an-arbitrary-markdown-document |
|
20 | + * |
|
21 | + * @param string $text The Markdown text to render |
|
22 | + * @param string $mode The rendering mode. |
|
23 | + * @param string $context The repository context. Only taken into account when rendering as gfm |
|
24 | + * |
|
25 | + * @return array |
|
26 | + */ |
|
27 | + public function render(string $text, string $mode = AbstractApi::MODE_MARKDOWN, string $context = ''): array |
|
28 | + { |
|
29 | + return $this->getApi()->request('/markdown', Request::METHOD_POST, [ |
|
30 | + 'text' => $text, |
|
31 | + 'mode' => $mode, |
|
32 | + 'context' => $context |
|
33 | + ]); |
|
34 | + } |
|
35 | 35 | |
36 | - /** |
|
37 | - * Render a Markdown document in raw mode |
|
38 | - * |
|
39 | - * @link https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode |
|
40 | - * |
|
41 | - * @param string $string |
|
42 | - * |
|
43 | - * @return array |
|
44 | - */ |
|
45 | - public function renderRaw(string $string): array |
|
46 | - { |
|
47 | - return $this->getApi()->setContentType('text/plain') |
|
48 | - ->request('/markdown/raw', Request::METHOD_POST, ['file' => $string]); |
|
49 | - } |
|
36 | + /** |
|
37 | + * Render a Markdown document in raw mode |
|
38 | + * |
|
39 | + * @link https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode |
|
40 | + * |
|
41 | + * @param string $string |
|
42 | + * |
|
43 | + * @return array |
|
44 | + */ |
|
45 | + public function renderRaw(string $string): array |
|
46 | + { |
|
47 | + return $this->getApi()->setContentType('text/plain') |
|
48 | + ->request('/markdown/raw', Request::METHOD_POST, ['file' => $string]); |
|
49 | + } |
|
50 | 50 | } |
51 | 51 | \ No newline at end of file |
@@ -12,44 +12,44 @@ |
||
12 | 12 | */ |
13 | 13 | abstract class AbstractRepositories |
14 | 14 | { |
15 | - /** Api trait */ |
|
16 | - use Api; |
|
15 | + /** Api trait */ |
|
16 | + use Api; |
|
17 | 17 | |
18 | - /** Properties */ |
|
19 | - protected $repositories; |
|
18 | + /** Properties */ |
|
19 | + protected $repositories; |
|
20 | 20 | |
21 | - /** |
|
22 | - * Constructor |
|
23 | - * |
|
24 | - * @param Repositories $repositories |
|
25 | - */ |
|
26 | - public function __construct(Repositories $repositories) |
|
27 | - { |
|
28 | - $this->setRepositories($repositories); |
|
29 | - $this->setApi($repositories->getApi()); |
|
30 | - } |
|
21 | + /** |
|
22 | + * Constructor |
|
23 | + * |
|
24 | + * @param Repositories $repositories |
|
25 | + */ |
|
26 | + public function __construct(Repositories $repositories) |
|
27 | + { |
|
28 | + $this->setRepositories($repositories); |
|
29 | + $this->setApi($repositories->getApi()); |
|
30 | + } |
|
31 | 31 | |
32 | - /** |
|
33 | - * Get repositories |
|
34 | - * |
|
35 | - * @return Repositories |
|
36 | - */ |
|
37 | - public function getRepositories(): Repositories |
|
38 | - { |
|
39 | - return $this->repositories; |
|
40 | - } |
|
32 | + /** |
|
33 | + * Get repositories |
|
34 | + * |
|
35 | + * @return Repositories |
|
36 | + */ |
|
37 | + public function getRepositories(): Repositories |
|
38 | + { |
|
39 | + return $this->repositories; |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * Set repositories |
|
44 | - * |
|
45 | - * @param Repositories $repositories |
|
46 | - * |
|
47 | - * @return AbstractRepositories |
|
48 | - */ |
|
49 | - public function setRepositories(Repositories $repositories): AbstractRepositories |
|
50 | - { |
|
51 | - $this->repositories = $repositories; |
|
42 | + /** |
|
43 | + * Set repositories |
|
44 | + * |
|
45 | + * @param Repositories $repositories |
|
46 | + * |
|
47 | + * @return AbstractRepositories |
|
48 | + */ |
|
49 | + public function setRepositories(Repositories $repositories): AbstractRepositories |
|
50 | + { |
|
51 | + $this->repositories = $repositories; |
|
52 | 52 | |
53 | - return $this; |
|
54 | - } |
|
53 | + return $this; |
|
54 | + } |
|
55 | 55 | } |
56 | 56 | \ No newline at end of file |
@@ -12,44 +12,44 @@ |
||
12 | 12 | */ |
13 | 13 | abstract class AbstractEnterprise |
14 | 14 | { |
15 | - /** Api trait */ |
|
16 | - use Api; |
|
15 | + /** Api trait */ |
|
16 | + use Api; |
|
17 | 17 | |
18 | - /** Properties */ |
|
19 | - protected $enterprise; |
|
18 | + /** Properties */ |
|
19 | + protected $enterprise; |
|
20 | 20 | |
21 | - /** |
|
22 | - * Constructor |
|
23 | - * |
|
24 | - * @param Enterprise $enterprise |
|
25 | - */ |
|
26 | - public function __construct(Enterprise $enterprise) |
|
27 | - { |
|
28 | - $this->setEnterprise($enterprise); |
|
29 | - $this->setApi($enterprise->getApi()); |
|
30 | - } |
|
21 | + /** |
|
22 | + * Constructor |
|
23 | + * |
|
24 | + * @param Enterprise $enterprise |
|
25 | + */ |
|
26 | + public function __construct(Enterprise $enterprise) |
|
27 | + { |
|
28 | + $this->setEnterprise($enterprise); |
|
29 | + $this->setApi($enterprise->getApi()); |
|
30 | + } |
|
31 | 31 | |
32 | - /** |
|
33 | - * Get enterprise |
|
34 | - * |
|
35 | - * @return Enterprise |
|
36 | - */ |
|
37 | - public function getEnterprise(): Enterprise |
|
38 | - { |
|
39 | - return $this->enterprise; |
|
40 | - } |
|
32 | + /** |
|
33 | + * Get enterprise |
|
34 | + * |
|
35 | + * @return Enterprise |
|
36 | + */ |
|
37 | + public function getEnterprise(): Enterprise |
|
38 | + { |
|
39 | + return $this->enterprise; |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * Set enterprise |
|
44 | - * |
|
45 | - * @param Enterprise $enterprise |
|
46 | - * |
|
47 | - * @return AbstractEnterprise |
|
48 | - */ |
|
49 | - public function setEnterprise(Enterprise $enterprise): AbstractEnterprise |
|
50 | - { |
|
51 | - $this->enterprise = $enterprise; |
|
42 | + /** |
|
43 | + * Set enterprise |
|
44 | + * |
|
45 | + * @param Enterprise $enterprise |
|
46 | + * |
|
47 | + * @return AbstractEnterprise |
|
48 | + */ |
|
49 | + public function setEnterprise(Enterprise $enterprise): AbstractEnterprise |
|
50 | + { |
|
51 | + $this->enterprise = $enterprise; |
|
52 | 52 | |
53 | - return $this; |
|
54 | - } |
|
53 | + return $this; |
|
54 | + } |
|
55 | 55 | } |
56 | 56 | \ No newline at end of file |
@@ -3,9 +3,9 @@ discard block |
||
3 | 3 | |
4 | 4 | use FlexyProject\GitHub\AbstractApi; |
5 | 5 | use FlexyProject\GitHub\Receiver\{ |
6 | - Activity\AbstractActivity, Enterprise\AbstractEnterprise, Gists\AbstractGists, GitData\AbstractGitData, |
|
7 | - Issues\AbstractIssues, Miscellaneous\AbstractMiscellaneous, Organizations\AbstractOrganizations, |
|
8 | - PullRequests\AbstractPullRequests, Repositories\AbstractRepositories |
|
6 | + Activity\AbstractActivity, Enterprise\AbstractEnterprise, Gists\AbstractGists, GitData\AbstractGitData, |
|
7 | + Issues\AbstractIssues, Miscellaneous\AbstractMiscellaneous, Organizations\AbstractOrganizations, |
|
8 | + PullRequests\AbstractPullRequests, Repositories\AbstractRepositories |
|
9 | 9 | }; |
10 | 10 | |
11 | 11 | /** |
@@ -15,30 +15,30 @@ discard block |
||
15 | 15 | */ |
16 | 16 | trait Api |
17 | 17 | { |
18 | - /** @var mixed */ |
|
19 | - protected $api; |
|
18 | + /** @var mixed */ |
|
19 | + protected $api; |
|
20 | 20 | |
21 | - /** |
|
22 | - * Get api |
|
23 | - * |
|
24 | - * @return AbstractApi|AbstractActivity|AbstractEnterprise|AbstractGists|AbstractGitData|AbstractIssues|AbstractMiscellaneous|AbstractOrganizations|AbstractPullRequests|AbstractRepositories |
|
25 | - */ |
|
26 | - public function getApi() |
|
27 | - { |
|
28 | - return $this->api; |
|
29 | - } |
|
21 | + /** |
|
22 | + * Get api |
|
23 | + * |
|
24 | + * @return AbstractApi|AbstractActivity|AbstractEnterprise|AbstractGists|AbstractGitData|AbstractIssues|AbstractMiscellaneous|AbstractOrganizations|AbstractPullRequests|AbstractRepositories |
|
25 | + */ |
|
26 | + public function getApi() |
|
27 | + { |
|
28 | + return $this->api; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * Set api |
|
33 | - * |
|
34 | - * @param AbstractApi|AbstractActivity|AbstractEnterprise|AbstractGists|AbstractGitData|AbstractIssues|AbstractMiscellaneous|AbstractOrganizations|AbstractPullRequests|AbstractRepositories $api |
|
35 | - * |
|
36 | - * @return Api |
|
37 | - */ |
|
38 | - public function setApi($api): self |
|
39 | - { |
|
40 | - $this->api = $api; |
|
31 | + /** |
|
32 | + * Set api |
|
33 | + * |
|
34 | + * @param AbstractApi|AbstractActivity|AbstractEnterprise|AbstractGists|AbstractGitData|AbstractIssues|AbstractMiscellaneous|AbstractOrganizations|AbstractPullRequests|AbstractRepositories $api |
|
35 | + * |
|
36 | + * @return Api |
|
37 | + */ |
|
38 | + public function setApi($api): self |
|
39 | + { |
|
40 | + $this->api = $api; |
|
41 | 41 | |
42 | - return $this; |
|
43 | - } |
|
42 | + return $this; |
|
43 | + } |
|
44 | 44 | } |
45 | 45 | \ No newline at end of file |