name = trim($name); $this->commercialUsage = $commercialUsage; $this->persistenceAllowed = $persistenceAllowed; $this->attributionRequired = $attributionRequired; $this->notes = array_values($notes); } public function getName(): string { return $this->name; } public function allowsCommercialUsage(): bool { return $this->commercialUsage; } public function allowsPersistence(): bool { return $this->persistenceAllowed; } public function requiresAttribution(): bool { return $this->attributionRequired; } public function getNotes(): array { return $this->notes; } }