1 | <?php |
||
5 | class Region |
||
6 | { |
||
7 | |||
8 | private $possibleOptions = [ |
||
9 | "us-east-1", |
||
10 | "us-west-2", |
||
11 | "us-west-1", |
||
12 | "eu-west-1", |
||
13 | "eu-central-1", |
||
14 | "ap-southeast-1", |
||
15 | "ap-northeast-1", |
||
16 | "ap-southeast-2", |
||
17 | "ap-northeast-2", |
||
18 | "sa-east-1" |
||
19 | ]; |
||
20 | |||
21 | private $name; |
||
22 | |||
23 | public function __construct($region) |
||
27 | |||
28 | public function setName($region) |
||
36 | |||
37 | public function getName() |
||
41 | |||
42 | } |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.