Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
2 / 2
ZestFunc
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
 __construct
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
<?php
namespace Wikimedia\Zest;
use DOMNode;
class ZestFunc {
    /** @var callable(DOMNode):bool */
    public $func;
    /** @var ?string */
    public $sel = null;
    /** @var ?callable(DOMNode):bool */
    public $simple = null;
    /** @var ?callable(DOMNode):(?DOMNode) */
    public $combinator = null;
    /** @var ?ZestFunc */
    public $test = null;
    /** @var ?string */
    public $lname = null;
    /** @var ?string */
    public $qname = null;
    /** @param callable(DOMNode):bool $func */
    function __construct( callable $func ) {
        $this->func = $func;
    }
}