1 | <?php |
||
17 | class Quotes { |
||
18 | |||
19 | /** |
||
20 | * Quotes |
||
21 | * @var collection |
||
22 | */ |
||
23 | protected $quotes; |
||
24 | |||
25 | /** |
||
26 | * Get the Quotes from the respective files depending on the Category |
||
27 | * @param string $category |
||
28 | * @return array |
||
29 | */ |
||
30 | private function getQuotes($category = null) |
||
31 | { |
||
32 | if(is_null($category)) { |
||
33 | return require("Quotes/programming.php"); |
||
34 | } |
||
35 | |||
36 | return require("Quotes/{$category}.php"); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Transform the programming quotes into a Collection |
||
41 | * @return Unicodeveloper\Quotes\Quotes |
||
42 | */ |
||
43 | public function programming() |
||
49 | |||
50 | /** |
||
51 | * Transform all the design quotes into a Collection |
||
52 | * @return Unicodeveloper\Quotes\Quotes |
||
53 | */ |
||
54 | public function design() |
||
60 | |||
61 | /** |
||
62 | * Get all Djkhaled Keys To Success #BlessUp #AnotherOne #TheyDontWantMeToWriteThisPackage |
||
63 | * @return Unicodeveloper\Quotes\Quotes |
||
64 | */ |
||
65 | public function djkhaled() |
||
71 | |||
72 | /** |
||
73 | * Get another quote. Another one, I say, Another One #BlessUp |
||
74 | * @return string |
||
75 | */ |
||
76 | public function anotherOne() |
||
80 | |||
81 | /** |
||
82 | * Get a random quote |
||
83 | * @return string |
||
84 | */ |
||
85 | public function random() |
||
89 | |||
90 | /** |
||
91 | * Get all the quotes |
||
92 | * @return Illuminate\Support\Collection |
||
93 | */ |
||
94 | public function all() |
||
98 | |||
99 | /** |
||
100 | * Get all the Keys to Success that are Blessed Up! |
||
101 | * @return array |
||
102 | */ |
||
103 | public function blessUp() |
||
115 | |||
116 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..