Better docblock type hinting for stores.

This commit is contained in:
Dan Cryer 2013-10-08 18:24:20 +01:00
commit d060227fbd
10 changed files with 105 additions and 50 deletions

View file

@ -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');