Total Complexity | 6 |
Total Lines | 70 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class Gravatar extends NamedColumn |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | protected $size = '40'; |
||
11 | |||
12 | /** @var string */ |
||
13 | protected $rating = 'pg'; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $view = 'column.gravatar'; |
||
19 | |||
20 | /** |
||
21 | * @return string |
||
22 | */ |
||
23 | public function getSize() |
||
24 | { |
||
25 | return $this->size; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @param string $size |
||
30 | * |
||
31 | * @return $this |
||
32 | */ |
||
33 | public function setSize($size) |
||
34 | { |
||
35 | $this->size = $size; |
||
36 | |||
37 | return $this; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getRating() |
||
44 | { |
||
45 | return $this->rating; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @param string $rating |
||
50 | * |
||
51 | * @return $this |
||
52 | */ |
||
53 | public function setRating($rating) |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @return array |
||
62 | */ |
||
63 | public function toArray() |
||
75 | ]; |
||
76 | } |
||
78 |