Sfoglia il codice sorgente

Fixes DocBlocks in Zend_Dom

Frank Brückner 11 anni fa
parent
commit
6e5418231a
2 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 4 3
      library/Zend/Dom/Query.php
  2. 2 3
      library/Zend/Dom/Query/Result.php

+ 4 - 3
library/Zend/Dom/Query.php

@@ -85,8 +85,8 @@ class Zend_Dom_Query
     /**
      * Constructor
      *
-     * @param  null|string $document
-     * @return void
+     * @param null|string $document
+     * @param null|string $encoding
      */
     public function __construct($document = null, $encoding = null)
     {
@@ -239,7 +239,8 @@ class Zend_Dom_Query
      * Perform an XPath query
      *
      * @param  string|array $xpathQuery
-     * @param  string $query CSS selector query
+     * @param  string       $query CSS selector query
+     * @throws Zend_Dom_Exception
      * @return Zend_Dom_Query_Result
      */
     public function queryXpath($xpathQuery, $query = null)

+ 2 - 3
library/Zend/Dom/Query/Result.php

@@ -76,7 +76,6 @@ class Zend_Dom_Query_Result implements Iterator,Countable
      * @param  string|array $xpathQuery
      * @param  DOMDocument $document
      * @param  DOMNodeList $nodeList
-     * @return void
      */
     public function  __construct($cssQuery, $xpathQuery, DOMDocument $document, DOMNodeList $nodeList)
     {
@@ -119,7 +118,7 @@ class Zend_Dom_Query_Result implements Iterator,Countable
     /**
      * Iterator: rewind to first element
      *
-     * @return void
+     * @return DOMNode|null
      */
     public function rewind()
     {
@@ -163,7 +162,7 @@ class Zend_Dom_Query_Result implements Iterator,Countable
     /**
      * Iterator: move to next element
      *
-     * @return void
+     * @return DOMNode|null
      */
     public function next()
     {