Merge pull request #104 from edwinhuish/add-phpdoc

fix phpdoc
This commit is contained in:
Jaeger(黄杰) 2020-03-11 10:20:22 -05:00 committed by GitHub
commit 116f19da65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 78 additions and 78 deletions

View File

@ -7,7 +7,8 @@
"PHP":">=7.0", "PHP":">=7.0",
"jaeger/phpquery-single": "^1", "jaeger/phpquery-single": "^1",
"tightenco/collect": "^5", "tightenco/collect": "^5",
"jaeger/g-http": "^1.1" "jaeger/g-http": "^1.1",
"ext-dom": "*"
}, },
"suggest":{ "suggest":{

View File

@ -7,41 +7,42 @@
namespace QL\Dom; namespace QL\Dom;
use phpDocumentor\Reflection\Types\Null_;
use phpQueryObject; use phpQueryObject;
/** /**
* Class Elements * Class Elements
* @package QL\Dom * @package QL\Dom
* *
* @method Elements toReference($var) * @method Elements toReference(&$var)
* @method documentFragment($state) * @method Elements documentFragment($state=null)
* @method Elements toRoot() * @method Elements toRoot()
* @method Elements getDocumentIDRef($documentID) * @method Elements getDocumentIDRef(&$documentID)
* @method Elements getDocument() * @method Elements getDocument()
* @method getDOMDocument() * @method \DOMDocument getDOMDocument()
* @method Elements getDocumentID() * @method Elements getDocumentID()
* @method Elements unloadDocument() * @method Elements unloadDocument()
* @method isHTML() * @method bool isHTML()
* @method isXHTML() * @method bool isXHTML()
* @method isXML() * @method bool isXML()
* @method serialize() * @method string serialize()
* @method serializeArray($submit) * @method array serializeArray($submit=null)
* @method get($index,$callback1,$callback2,$callback3) * @method \DOMElement|\DOMElement[] get($index=null,$callback1=null,$callback2=null,$callback3=null)
* @method getString($index,$callback1,$callback2,$callback3) * @method string|array getString($index=null,$callback1=null,$callback2=null,$callback3=null)
* @method getStrings($index,$callback1,$callback2,$callback3) * @method string|array getStrings($index=null,$callback1=null,$callback2=null,$callback3=null)
* @method newInstance($newStack) * @method Elements newInstance($newStack=null)
* @method Elements find($selectors,$context,$noHistory) * @method Elements find($selectors,$context=null,$noHistory=false)
* @method Elements is($selector,$nodes) * @method Elements|bool is($selector,$nodes=null)
* @method Elements filterCallback($callback,$_skipHistory) * @method Elements filterCallback($callback,$_skipHistory=false)
* @method Elements filter($selectors,$_skipHistory) * @method Elements filter($selectors,$_skipHistory=false)
* @method load($url,$data,$callback) * @method Elements load($url,$data=null,$callback=null)
* @method Elements trigger($type,$data) * @method Elements trigger($type,$data=[])
* @method Elements triggerHandler($type,$data) * @method Elements triggerHandler($type,$data=[])
* @method Elements bind($type,$data,$callback) * @method Elements bind($type,$data,$callback=null)
* @method unbind($type,$callback) * @method Elements unbind($type=null,$callback=null)
* @method Elements change($callback) * @method Elements change($callback=null)
* @method Elements submit($callback) * @method Elements submit($callback=null)
* @method Elements click($callback) * @method Elements click($callback=null)
* @method Elements wrapAllOld($wrapper) * @method Elements wrapAllOld($wrapper)
* @method Elements wrapAll($wrapper) * @method Elements wrapAll($wrapper)
* @method Elements wrapAllPHP($codeBefore,$codeAfter) * @method Elements wrapAllPHP($codeBefore,$codeAfter)
@ -51,26 +52,26 @@ use phpQueryObject;
* @method Elements wrapInnerPHP($codeBefore,$codeAfter) * @method Elements wrapInnerPHP($codeBefore,$codeAfter)
* @method Elements contents() * @method Elements contents()
* @method Elements contentsUnwrap() * @method Elements contentsUnwrap()
* @method switchWith($markup) * @method Elements switchWith($markup)
* @method Elements eq($num) * @method Elements eq($num)
* @method Elements size() * @method Elements size()
* @method Elements length() * @method Elements length()
* @method count() * @method int count()
* @method Elements end($level) * @method Elements end($level=1)
* @method Elements _clone() * @method Elements _clone()
* @method Elements replaceWithPHP($code) * @method Elements replaceWithPHP($code)
* @method Elements replaceWith($content) * @method Elements replaceWith($content)
* @method Elements replaceAll($selector) * @method Elements replaceAll($selector)
* @method Elements remove($selector) * @method Elements remove($selector=null)
* @method markup($markup,$callback1,$callback2,$callback3) * @method Elements|string markup($markup=null,$callback1=null,$callback2=null,$callback3=null)
* @method markupOuter($callback1,$callback2,$callback3) * @method string markupOuter($callback1=null,$callback2=null,$callback3=null)
* @method html($html,$callback1,$callback2,$callback3) * @method Elements|string html($html=null,$callback1=null,$callback2=null,$callback3=null)
* @method xml($xml,$callback1,$callback2,$callback3) * @method Elements|string xml($xml=null,$callback1=null,$callback2=null,$callback3=null)
* @method htmlOuter($callback1,$callback2,$callback3) * @method string htmlOuter($callback1=null,$callback2=null,$callback3=null)
* @method xmlOuter($callback1,$callback2,$callback3) * @method string xmlOuter($callback1=null,$callback2=null,$callback3=null)
* @method Elements php($code) * @method Elements php($code)
* @method markupPHP($code) * @method string markupPHP($code)
* @method markupOuterPHP() * @method string markupOuterPHP()
* @method Elements children($selector) * @method Elements children($selector)
* @method Elements ancestors($selector) * @method Elements ancestors($selector)
* @method Elements append($content) * @method Elements append($content)
@ -86,52 +87,50 @@ use phpQueryObject;
* @method Elements afterPHP($content) * @method Elements afterPHP($content)
* @method Elements insertAfter($seletor) * @method Elements insertAfter($seletor)
* @method Elements insert($target,$type) * @method Elements insert($target,$type)
* @method index($subject) * @method int index($subject)
* @method Elements slice($start,$end) * @method Elements slice($start,$end=null)
* @method Elements reverse() * @method Elements reverse()
* @method text($text,$callback1,$callback2,$callback3) * @method Elements|string text($text=null,$callback1=null,$callback2=null,$callback3=null)
* @method Elements plugin($class,$file) * @method Elements plugin($class,$file=null)
* @method extend($class,$file) * @method Elements _next($selector=null)
* @method Elements _next($selector) * @method Elements _prev($selector=null)
* @method Elements _prev($selector) * @method Elements prev($selector=null)
* @method Elements prev($selector) * @method Elements prevAll($selector=null)
* @method Elements prevAll($selector) * @method Elements nextAll($selector=null)
* @method Elements nextAll($selector) * @method Elements siblings($selector=null)
* @method Elements siblings($selector) * @method Elements not($selector=null)
* @method Elements not($selector) * @method Elements add($selector=null)
* @method Elements add($selector) * @method Elements parent($selector=null)
* @method Elements parent($selector) * @method Elements parents($selector=null)
* @method Elements parents($selector) * @method Elements stack($nodeTypes=null)
* @method stack($nodeTypes) * @method Elements|string attr($attr=null,$value=null)
* @method attr($attr,$value)
* @method Elements attrPHP($attr,$code) * @method Elements attrPHP($attr,$code)
* @method Elements removeAttr($attr) * @method Elements removeAttr($attr)
* @method val($val) * @method Elements|string val($val=null)
* @method Elements andSelf() * @method Elements andSelf()
* @method Elements addClass($className) * @method Elements addClass($className)
* @method Elements addClassPHP($className) * @method Elements addClassPHP($className)
* @method hasClass($className) * @method bool hasClass($className)
* @method Elements removeClass($className) * @method Elements removeClass($className)
* @method Elements toggleClass($className) * @method Elements toggleClass($className)
* @method Elements _empty() * @method Elements _empty()
* @method Elements each($callback,$param1,$param2,$param3) * @method Elements each($callback,$param1=null,$param2=null,$param3=null)
* @method Elements callback($callback,$param1,$param2,$param3) * @method Elements callback($callback,$param1=null,$param2=null,$param3=null)
* @method data($key,$value) * @method string data($key,$value=null)
* @method removeData($key) * @method Elements removeData($key)
* @method rewind() * @method void rewind()
* @method current() * @method Elements current()
* @method key() * @method int key()
* @method Elements next($cssSelector) * @method Elements next($cssSelector=null)
* @method valid() * @method bool valid()
* @method offsetExists($offset) * @method bool offsetExists($offset)
* @method offsetGet($offset) * @method Elements offsetGet($offset)
* @method offsetSet($offset,$value) * @method void offsetSet($offset,$value)
* @method offsetUnset($offset) * @method string whois($oneNode)
* @method whois($oneNode)
* @method Elements dump() * @method Elements dump()
* @method dumpWhois() * @method Elements dumpWhois()
* @method dumpLength() * @method Elements dumpLength()
* @method dumpTree($html,$title) * @method Elements dumpTree($html,$title)
* @method dumpDie() * @method dumpDie()
*/ */
@ -171,7 +170,7 @@ class Elements
* Iterating elements * Iterating elements
* *
* @param $callback * @param $callback
* @return \Illuminate\Support\Collection * @return \Illuminate\Support\Collection|\Tightenco\Collect\Support\Collection
*/ */
public function map($callback) public function map($callback)
{ {
@ -186,7 +185,7 @@ class Elements
* Gets the attributes of all the elements * Gets the attributes of all the elements
* *
* @param $attr HTML attribute name * @param $attr HTML attribute name
* @return \Illuminate\Support\Collection * @return \Illuminate\Support\Collection|\Tightenco\Collect\Support\Collection
*/ */
public function attrs($attr) public function attrs($attr)
{ {
@ -198,7 +197,7 @@ class Elements
/** /**
* Gets the text of all the elements * Gets the text of all the elements
* *
* @return \Illuminate\Support\Collection * @return \Illuminate\Support\Collection|\Tightenco\Collect\Support\Collection
*/ */
public function texts() public function texts()
{ {
@ -210,7 +209,7 @@ class Elements
/** /**
* Gets the html of all the elements * Gets the html of all the elements
* *
* @return \Illuminate\Support\Collection * @return \Illuminate\Support\Collection|\Tightenco\Collect\Support\Collection
*/ */
public function htmls() public function htmls()
{ {