These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php declare(strict_types=1); |
||
2 | |||
3 | namespace ApiClients\Client\Github\Resource\Git; |
||
4 | |||
5 | use ApiClients\Foundation\Hydrator\Annotation\EmptyResource; |
||
6 | use ApiClients\Foundation\Hydrator\Annotation\Nested; |
||
7 | use ApiClients\Foundation\Resource\AbstractResource; |
||
8 | |||
9 | /** |
||
10 | * @Nested( |
||
11 | * author="Git\Ref\Object_" |
||
12 | * ) |
||
13 | * @EmptyResource("Git\EmptyRef") |
||
14 | */ |
||
15 | abstract class Ref extends AbstractResource implements RefInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $ref; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $url; |
||
26 | |||
27 | /** |
||
28 | * @var Git\Ref\Object_ |
||
29 | */ |
||
30 | protected $author; |
||
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | public function ref(): string |
||
0 ignored issues
–
show
Coding Style
Best Practice
introduced
by
Loading history...
|
|||
36 | { |
||
37 | return $this->ref; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | public function url(): string |
||
44 | { |
||
45 | return $this->url; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return Git\Ref\Object_ |
||
50 | */ |
||
51 | public function author(): Git\Ref\Object_ |
||
52 | { |
||
53 | return $this->author; |
||
54 | } |
||
55 | } |
||
56 |