memory[$tool->T] = $tool; } public function read(int $T): ?Tool { return @$this->memory[$T]; } }