diff options
author | Tobias Sarnowski <sarnowski@cosmocode.de> | 2012-04-18 10:02:51 +0200 |
---|---|---|
committer | Tobias Sarnowski <sarnowski@cosmocode.de> | 2012-04-18 10:02:51 +0200 |
commit | 96199bdf84b54d92069ce0779aad324599c2542e (patch) | |
tree | 441cdbbe9f9fe166e8f2e451bf504f64cad9614a /_testing/core/TestResponse.php | |
parent | 1c35434449ba09b5d7e9f41a25b9a1525b273580 (diff) | |
download | rpg-96199bdf84b54d92069ce0779aad324599c2542e.tar.gz rpg-96199bdf84b54d92069ce0779aad324599c2542e.tar.bz2 |
finally updated phpdocs to reflect correct types
Diffstat (limited to '_testing/core/TestResponse.php')
-rw-r--r-- | _testing/core/TestResponse.php | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/_testing/core/TestResponse.php b/_testing/core/TestResponse.php index ed112b42e..6d20afb28 100644 --- a/_testing/core/TestResponse.php +++ b/_testing/core/TestResponse.php @@ -3,35 +3,52 @@ * holds a copy of all produced outputs of a TestRequest */ class TestResponse { - protected $content; - protected $headers; + /** + * @var string + */ + private $content; + + /** + * @var array + */ + private $headers; /** * @var phpQueryObject */ - protected $pq = null; + private $pq = null; + /** + * @param $content string + * @param $headers array + */ function __construct($content, $headers) { $this->content = $content; $this->headers = $headers; } - function getContent() { + /** + * @return string + */ + public function getContent() { return $this->content; } - function getHeaders() { + /** + * @return array + */ + public function getHeaders() { return $this->headers; } /** * Query the response for a JQuery compatible CSS selector * - * @link https://code.google.com/p/phpquery/wiki/Selectors - * @param string selector - * @returns object a PHPQuery object + * @link https://code.google.com/p/phpquery/wiki/Selectors + * @param $selector string + * @return phpQueryObject */ - function queryHTML($selector){ + public function queryHTML($selector){ if(is_null($this->pq)) $this->pq = phpQuery::newDocument($this->content); return $this->pq->find($selector); } |