Better docblock type hinting for stores.
This commit is contained in:
parent
cccf0b9869
commit
d060227fbd
10 changed files with 105 additions and 50 deletions
|
|
@ -21,9 +21,14 @@ use PHPCI\Model\Build;
|
|||
*/
|
||||
class GithubController extends \PHPCI\Controller
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Store\BuildStore
|
||||
*/
|
||||
protected $buildStore;
|
||||
|
||||
public function init()
|
||||
{
|
||||
$this->_buildStore = Store\Factory::getStore('Build');
|
||||
$this->buildStore = Store\Factory::getStore('Build');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -53,7 +58,7 @@ class GithubController extends \PHPCI\Controller
|
|||
}
|
||||
|
||||
try {
|
||||
$build = $this->_buildStore->save($build);
|
||||
$build = $this->buildStore->save($build);
|
||||
$build->sendStatusPostback();
|
||||
} catch (\Exception $ex) {
|
||||
header('HTTP/1.1 500 Internal Server Error');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue