get(Relation::class); $relation->getQuery($this->name)->$name(...$arguments); return $this; } else { return $this->get(); } } /** * @param string $name * @return mixed */ public function __get(string $name): mixed { if ($this->data === null) { $this->data = $this->get(); } return $this->data; } }