Beispiel #1
0
 public function __construct()
 {
     $streetOptions = AssBuilder::getStreetOptions();
     $streetNameArr = array('Пушкинская', 'Советская', 'Малышева', 'Академика Павлова', 'Ленина');
     $this->streetName = $streetNameArr[$streetOptions['streetNameRand']];
     $this->streetLength = $streetOptions['streetLengthRand'];
     $this->streetCoords = $streetOptions['streetCoordsRand'];
     for ($i = 0; $i < $streetOptions['houseCountRand']; $i++) {
         $arr[$i] = new Building();
     }
     $this->houseCount = $arr;
 }