Skip to content

Commit ca9a2fa

Browse files
committed
Merge pull request #1 from Linfuby/master
PHPDoc
2 parents 18ff468 + 8144cb1 commit ca9a2fa

File tree

10 files changed

+130
-27
lines changed

10 files changed

+130
-27
lines changed

src/PHPixie/Framework.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
abstract class Framework
66
{
7+
/**
8+
* @type Framework\Builder
9+
*/
710
protected $builder;
811

912
public function __construct()

src/PHPixie/Framework/Assets.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
class Assets
66
{
7+
/**
8+
* @type Components
9+
*/
710
protected $components;
811
protected $instances = array();
912

src/PHPixie/Framework/Builder.php

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,50 @@
55
abstract class Builder
66
{
77
protected $instances = array();
8-
8+
9+
/**
10+
* @return Assets
11+
*/
912
public function assets()
1013
{
1114
return $this->instance('assets');
1215
}
13-
16+
17+
/**
18+
* @return Components
19+
*/
1420
public function components()
1521
{
1622
return $this->instance('components');
1723
}
18-
24+
25+
/**
26+
* @return Context
27+
*/
1928
public function context()
2029
{
2130
return $this->instance('context');
2231
}
23-
32+
33+
/**
34+
* @return Extensions
35+
*/
2436
public function extensions()
2537
{
2638
return $this->instance('extensions');
2739
}
28-
40+
41+
/**
42+
* @return HTTP
43+
*/
2944
public function http()
3045
{
3146
return $this->instance('http');
3247
}
33-
48+
49+
/**
50+
* @return Processors
51+
*/
3452
public function processors()
3553
{
3654
return $this->instance('processors');

src/PHPixie/Framework/Components.php

Lines changed: 71 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,89 +4,143 @@
44

55
class Components
66
{
7+
/**
8+
* @type Builder
9+
*/
710
protected $builder;
811
protected $instances = array();
9-
12+
13+
/**
14+
* @param Builder $builder
15+
*/
1016
public function __construct($builder)
1117
{
1218
$this->builder = $builder;
1319
}
14-
20+
21+
/**
22+
* @return \PHPixie\Slice
23+
*/
1524
public function slice()
1625
{
1726
return $this->instance('slice');
1827
}
19-
28+
29+
/**
30+
* @return \PHPixie\Config
31+
*/
2032
public function config()
2133
{
2234
return $this->instance('config');
2335
}
24-
36+
37+
/**
38+
* @return \PHPixie\Debug
39+
*/
2540
public function debug()
2641
{
2742
return $this->instance('debug');
2843
}
29-
44+
45+
/**
46+
* @return \PHPixie\Database
47+
*/
3048
public function database()
3149
{
3250
return $this->instance('database');
3351
}
34-
52+
53+
/**
54+
* @return \PHPixie\Filesystem
55+
*/
3556
public function filesystem()
3657
{
3758
return $this->instance('filesystem');
3859
}
39-
60+
61+
/**
62+
* @return \PHPixie\HTTP
63+
*/
4064
public function http()
4165
{
4266
return $this->instance('http');
4367
}
44-
68+
69+
/**
70+
* @return \PHPixie\HTTPProcessors
71+
*/
4572
public function httpProcessors()
4673
{
4774
return $this->instance('httpProcessors');
4875
}
49-
76+
77+
/**
78+
* @return \PHPixie\ORM
79+
*/
5080
public function orm()
5181
{
5282
return $this->instance('orm');
5383
}
54-
84+
85+
/**
86+
* @return \PHPixie\Processors
87+
*/
5588
public function processors()
5689
{
5790
return $this->instance('processors');
5891
}
59-
92+
93+
/**
94+
* @return \PHPixie\Template
95+
*/
6096
public function template()
6197
{
6298
return $this->instance('template');
6399
}
64-
100+
101+
/**
102+
* @return \PHPixie\Route
103+
*/
65104
public function route()
66105
{
67106
return $this->instance('route');
68107
}
69-
108+
109+
/**
110+
* @return \PHPixie\Security
111+
*/
70112
public function security()
71113
{
72114
return $this->instance('security');
73115
}
74-
116+
117+
/**
118+
* @return \PHPixie\Auth
119+
*/
75120
public function auth()
76121
{
77122
return $this->instance('auth');
78123
}
79-
124+
125+
/**
126+
* @return \PHPixie\AuthProcessors
127+
*/
80128
public function authProcessors()
81129
{
82130
return $this->instance('authProcessors');
83131
}
84-
132+
133+
/**
134+
* @return \PHPixie\Paginate
135+
*/
85136
public function paginate()
86137
{
87138
return $this->instance('paginate');
88139
}
89-
140+
141+
/**
142+
* @return \PHPixie\PaginateORM
143+
*/
90144
public function paginateOrm()
91145
{
92146
return $this->instance('paginateOrm');

src/PHPixie/Framework/Context.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ class Context implements \PHPixie\HTTP\Context\Container\Settable,
77
{
88
protected $httpContext;
99
protected $authContext;
10-
10+
11+
/**
12+
* @return \PHPixie\HTTP\Context
13+
*/
1114
public function httpContext()
1215
{
1316
return $this->httpContext;
@@ -17,7 +20,10 @@ public function setHttpContext($httpContext)
1720
{
1821
$this->httpContext = $httpContext;
1922
}
20-
23+
24+
/**
25+
* @return \PHPixie\Auth\Context
26+
*/
2127
public function authContext()
2228
{
2329
return $this->authContext;

src/PHPixie/Framework/Extensions.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44

55
class Extensions
66
{
7+
/**
8+
* @type Builder
9+
*/
710
protected $builder;
811

912
public function __construct($builder)
1013
{
1114
$this->builder = $builder;
1215
}
13-
16+
1417
public function templateExtensions()
1518
{
1619
return array(

src/PHPixie/Framework/Extensions/Template/Extension/RouteTranslator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ class RouteTranslator implements \PHPixie\Template\Extensions\Extension
66
{
77

88
protected $name;
9+
10+
/**
11+
* @type \PHPixie\Route\Translator
12+
*/
913
protected $routeTranslator;
1014

1115
public function __construct($name, $routeTranslator)

src/PHPixie/Framework/HTTP.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
class HTTP
66
{
7+
/**
8+
* @type Builder
9+
*/
710
protected $builder;
811
protected $configData;
912

@@ -18,7 +21,10 @@ public function processor()
1821
{
1922
return $this->instance('processor');
2023
}
21-
24+
25+
/**
26+
* @return \PHPixie\Route\Translator
27+
*/
2228
public function routeTranslator()
2329
{
2430
return $this->instance('routeTranslator');

src/PHPixie/Framework/Processors.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
class Processors
66
{
7+
/**
8+
* @type Builder
9+
*/
710
protected $builder;
811

912
public function __construct($builder)

src/PHPixie/Framework/Processors/HTTP/ParseRoute.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
class ParseRoute implements \PHPixie\Processors\Processor
66
{
7+
/**
8+
* @type \PHPixie\Route\Translator
9+
*/
710
protected $routeTranslator;
811

912
public function __construct($routeTranslator)

0 commit comments

Comments
 (0)