reason = $reason; } /** * Compares the current reason with a given one. * * @param string $reason The reason to compare with. * * @return bool */ public function is( string $reason ): bool { return $this->reason === $reason; } /** * Returns the reason explaining authorization status. * * @return string */ public function reason(): string { return $this->reason; } }