|
4 | 4 |
|
5 | 5 | class Components |
6 | 6 | { |
| 7 | + /** |
| 8 | + * @type Builder |
| 9 | + */ |
7 | 10 | protected $builder; |
8 | 11 | protected $instances = array(); |
9 | | - |
| 12 | + |
| 13 | + /** |
| 14 | + * @param Builder $builder |
| 15 | + */ |
10 | 16 | public function __construct($builder) |
11 | 17 | { |
12 | 18 | $this->builder = $builder; |
13 | 19 | } |
14 | | - |
| 20 | + |
| 21 | + /** |
| 22 | + * @return \PHPixie\Slice |
| 23 | + */ |
15 | 24 | public function slice() |
16 | 25 | { |
17 | 26 | return $this->instance('slice'); |
18 | 27 | } |
19 | | - |
| 28 | + |
| 29 | + /** |
| 30 | + * @return \PHPixie\Config |
| 31 | + */ |
20 | 32 | public function config() |
21 | 33 | { |
22 | 34 | return $this->instance('config'); |
23 | 35 | } |
24 | | - |
| 36 | + |
| 37 | + /** |
| 38 | + * @return \PHPixie\Debug |
| 39 | + */ |
25 | 40 | public function debug() |
26 | 41 | { |
27 | 42 | return $this->instance('debug'); |
28 | 43 | } |
29 | | - |
| 44 | + |
| 45 | + /** |
| 46 | + * @return \PHPixie\Database |
| 47 | + */ |
30 | 48 | public function database() |
31 | 49 | { |
32 | 50 | return $this->instance('database'); |
33 | 51 | } |
34 | | - |
| 52 | + |
| 53 | + /** |
| 54 | + * @return \PHPixie\Filesystem |
| 55 | + */ |
35 | 56 | public function filesystem() |
36 | 57 | { |
37 | 58 | return $this->instance('filesystem'); |
38 | 59 | } |
39 | | - |
| 60 | + |
| 61 | + /** |
| 62 | + * @return \PHPixie\HTTP |
| 63 | + */ |
40 | 64 | public function http() |
41 | 65 | { |
42 | 66 | return $this->instance('http'); |
43 | 67 | } |
44 | | - |
| 68 | + |
| 69 | + /** |
| 70 | + * @return \PHPixie\HTTPProcessors |
| 71 | + */ |
45 | 72 | public function httpProcessors() |
46 | 73 | { |
47 | 74 | return $this->instance('httpProcessors'); |
48 | 75 | } |
49 | | - |
| 76 | + |
| 77 | + /** |
| 78 | + * @return \PHPixie\ORM |
| 79 | + */ |
50 | 80 | public function orm() |
51 | 81 | { |
52 | 82 | return $this->instance('orm'); |
53 | 83 | } |
54 | | - |
| 84 | + |
| 85 | + /** |
| 86 | + * @return \PHPixie\Processors |
| 87 | + */ |
55 | 88 | public function processors() |
56 | 89 | { |
57 | 90 | return $this->instance('processors'); |
58 | 91 | } |
59 | | - |
| 92 | + |
| 93 | + /** |
| 94 | + * @return \PHPixie\Template |
| 95 | + */ |
60 | 96 | public function template() |
61 | 97 | { |
62 | 98 | return $this->instance('template'); |
63 | 99 | } |
64 | | - |
| 100 | + |
| 101 | + /** |
| 102 | + * @return \PHPixie\Route |
| 103 | + */ |
65 | 104 | public function route() |
66 | 105 | { |
67 | 106 | return $this->instance('route'); |
68 | 107 | } |
69 | | - |
| 108 | + |
| 109 | + /** |
| 110 | + * @return \PHPixie\Security |
| 111 | + */ |
70 | 112 | public function security() |
71 | 113 | { |
72 | 114 | return $this->instance('security'); |
73 | 115 | } |
74 | | - |
| 116 | + |
| 117 | + /** |
| 118 | + * @return \PHPixie\Auth |
| 119 | + */ |
75 | 120 | public function auth() |
76 | 121 | { |
77 | 122 | return $this->instance('auth'); |
78 | 123 | } |
79 | | - |
| 124 | + |
| 125 | + /** |
| 126 | + * @return \PHPixie\AuthProcessors |
| 127 | + */ |
80 | 128 | public function authProcessors() |
81 | 129 | { |
82 | 130 | return $this->instance('authProcessors'); |
83 | 131 | } |
84 | | - |
| 132 | + |
| 133 | + /** |
| 134 | + * @return \PHPixie\Paginate |
| 135 | + */ |
85 | 136 | public function paginate() |
86 | 137 | { |
87 | 138 | return $this->instance('paginate'); |
88 | 139 | } |
89 | | - |
| 140 | + |
| 141 | + /** |
| 142 | + * @return \PHPixie\PaginateORM |
| 143 | + */ |
90 | 144 | public function paginateOrm() |
91 | 145 | { |
92 | 146 | return $this->instance('paginateOrm'); |
|
0 commit comments