'Per Line Item', self::PerDocument => 'Per Document', }; } public function isPerLineItem(): bool { return $this == self::PerLineItem; } public function isPerDocument(): bool { return $this == self::PerDocument; } }