From 6729094f639a22254e2aec9163ad0b44333ee307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 3 Dec 2021 15:35:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/Abstracts/Component.php | 32 ----------------------------- 1 file changed, 32 deletions(-) diff --git a/kiri-engine/Abstracts/Component.php b/kiri-engine/Abstracts/Component.php index bae264cc..9339eaa1 100644 --- a/kiri-engine/Abstracts/Component.php +++ b/kiri-engine/Abstracts/Component.php @@ -10,11 +10,6 @@ declare(strict_types=1); namespace Kiri\Abstracts; -use Exception; - -use JetBrains\PhpStorm\Pure; -use Kiri\Exception\ComponentException; -use Kiri\Kiri; /** * Class Component @@ -24,32 +19,5 @@ class Component extends BaseObject { - /** - * @param $name - * @param $value - * @throws Exception - */ - public function __set($name, $value) - { - if (property_exists($this, $name)) { - $this->$name = $value; - } else { - parent::__set($name, $value); - } - } - - /** - * @param $name - * @return mixed - * @throws Exception - */ - public function __get($name): mixed - { - if (property_exists($this, $name)) { - return $this->$name ?? null; - } else { - return parent::__get($name); - } - } }