1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-23 17:12:41 +00:00
Arsse/lib/Context/Context.php

30 lines
637 B
PHP
Raw Normal View History

<?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;
/** @var ExclusionContext */
public $not;
public function __construct() {
$this->not = new ExclusionContext($this);
}
public function __clone() {
// clone the exclusion context as well
$this->not = clone $this->not;
}
2019-02-26 16:12:40 +00:00
/** @codeCoverageIgnore */
public function __destruct() {
unset($this->not);
}
}