<?php abstract class ParentTest { public static function fromDB(string $name = '') { $instance = new static(); if (!empty($name)) { $instance->setName($name)->read(); } return $instance; } public abstract function read(); public abstract function setName(string $name): self; } class Child extends ParentTest { public function read() { } public function setName(string $name) :ParentTest { return $this; } } $child = new Child();
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`