schemas)->only($id)->all(); } return $id ? $this->schemas[$id] : $this->schemas; } public function register(FeatureSchemaInterface $schema): void { if (array_key_exists($schema->getId(), $this->schemas)) { return; } $this->schemas[$schema->getId()] = $schema; } }