class = $class; $this->name = $fieldName; $this->getter = $methodName; $this->readOnly = true; } public function setAccessor(string $type, ?string $getter = null, ?string $setter = null): void { } /** * {@inheritdoc} */ public function unserialize($str) { $parentStr = $this->unserializeProperties($str); [$this->class, $this->name] = unserialize($parentStr); } }