| 1 | <?php  | 
            ||
| 7 | class ClaimCheck  | 
            ||
| 8 | { | 
            ||
| 9 | /** @var string */  | 
            ||
| 10 | private $s3BucketName;  | 
            ||
| 11 | |||
| 12 | /** @var string */  | 
            ||
| 13 | private $s3Key;  | 
            ||
| 14 | |||
| 15 | /**  | 
            ||
| 16 | * ClaimCheckMessage constructor.  | 
            ||
| 17 | * @param string $s3BucketName  | 
            ||
| 18 | * @param string $s3Key  | 
            ||
| 19 | */  | 
            ||
| 20 | 17 | public function __construct($s3BucketName, $s3Key = null)  | 
            |
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * @return string  | 
            ||
| 33 | */  | 
            ||
| 34 | 10 | public function getS3BucketName()  | 
            |
| 38 | |||
| 39 | /**  | 
            ||
| 40 | * @return string  | 
            ||
| 41 | */  | 
            ||
| 42 | 11 | public function getS3Key()  | 
            |
| 46 | }  | 
            ||
| 47 | 
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: