Source of file Response.php
Size: 0,929 Bytes - Last Modified: 2015-12-22T09:12:14-05:00
../src/Traits/Response.php
1234567891011121314151617181920212223242526272829303132333435363738394041
Covered by 2 test(s):
42
Covered by 2 test(s):
43
Covered by 2 test(s):
44
Covered by 2 test(s):
454647
| <?php /** * Response Trait * * @category PHP * @package MvcLite * @subpackage Traits * @since File available since release 3.0.x * @author Cory Collier <corycollier@corycollier.com> */ namespace MvcLite\Traits; /** * Request Trait. * * Allows a getter for the requests instance. * * @category PHP * @package MvcLite * @subpackage Traits * @since File available since release 3.0.x * @author Cory Collier <corycollier@corycollier.com> */ trait Response { /** * Response instance variable. * * @var MvcLite\Response */ protected $response; /** * Getter for the response instance variable. * * @return MvcLite\Response The response instance. */ public function getResponse() { if (!$this->response) { $this->response = \MvcLite\Response::getInstance(); } return $this->response; } } |