Exakat\Analyzer\Analyzer::is PHP Method

is() public method

public is ( $property, $value = true )
    public function is($property, $value = true)
    {
        if ($value === null) {
            $this->addMethod('has("' . $property . '", null)');
        } elseif ($value === true) {
            $this->addMethod('has("' . $property . '", true)');
        } elseif ($value === false) {
            $this->addMethod('has("' . $property . '", false)');
        } elseif (is_int($value)) {
            $this->addMethod('has("' . $property . '", ' . $value . ')');
        } else {
            // $value is an array
            $this->addMethod('has("' . $property . '", within(***))', $value);
        }
        return $this;
    }
Analyzer