Coduo\PHPMatcher\Matcher\ArrayMatcher::arrayPropertyExists PHP Method

arrayPropertyExists() private method

private arrayPropertyExists ( string $property, array $objectOrArray ) : boolean
$property string
$objectOrArray array
return boolean
    private function arrayPropertyExists($property, array $objectOrArray)
    {
        return $objectOrArray instanceof \ArrayAccess && isset($objectOrArray[$property]) || is_array($objectOrArray) && array_key_exists($property, $objectOrArray);
    }