2019-02-26 03:41:12 +00:00
|
|
|
<?php
|
|
|
|
/** @license MIT
|
|
|
|
* Copyright 2017 J. King, Dustin Wilson et al.
|
|
|
|
* See LICENSE and AUTHORS files for details */
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace JKingWeb\Arsse\Context;
|
|
|
|
|
2022-04-29 02:32:10 +00:00
|
|
|
class Context extends RootContext {
|
2022-04-20 03:20:20 +00:00
|
|
|
use BooleanMembers;
|
|
|
|
use ExclusionMembers;
|
2022-04-19 02:04:48 +00:00
|
|
|
|
2019-02-26 04:59:48 +00:00
|
|
|
/** @var ExclusionContext */
|
2019-02-26 03:41:12 +00:00
|
|
|
public $not;
|
|
|
|
|
|
|
|
public function __construct() {
|
2019-02-26 04:37:14 +00:00
|
|
|
$this->not = new ExclusionContext($this);
|
2019-02-26 03:41:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function __clone() {
|
|
|
|
// clone the exclusion context as well
|
|
|
|
$this->not = clone $this->not;
|
|
|
|
}
|
|
|
|
|
2019-02-26 16:12:40 +00:00
|
|
|
/** @codeCoverageIgnore */
|
2019-02-26 04:37:14 +00:00
|
|
|
public function __destruct() {
|
|
|
|
unset($this->not);
|
|
|
|
}
|
2019-02-26 03:41:12 +00:00
|
|
|
}
|