| 1 | <?php |
||
| 9 | class Info_Window extends Model_Base { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $_content = ''; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var int |
||
| 18 | */ |
||
| 19 | protected $_pixel_offset = 0; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $_position; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var int |
||
| 28 | */ |
||
| 29 | protected $_max_width; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $content |
||
| 33 | */ |
||
| 34 | 1 | public function set_content( $content ) { |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $offset |
||
| 42 | */ |
||
| 43 | 1 | public function set_pixel_offset( $offset ) { |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @param array $position |
||
| 51 | */ |
||
| 52 | 2 | public function set_position( $position ) { |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @param string $width |
||
| 65 | */ |
||
| 66 | 1 | public function set_max_width( $width ) { |
|
| 71 | |||
| 72 | } |
||
| 73 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.