<section class="section section_fifth">
<div class="row row_7">
<div class="col-lg-12 gallery">
<img class="img_gallery" src="img/Rectangle 7.2.png" alt=""><img class="img_gallery" src="img/Rectangle 7.3.png" alt=""><img class="img_gallery" src="img/Rectangle 7.2.png" alt=""><img class="img_gallery" src="img/Rectangle 7.3.png" alt=""><img class="img_gallery" src="img/Rectangle 7.3.png" alt=""><img class="img_gallery" src="img/Rectangle 7.2.png" alt=""><img class="img_gallery" src="img/Rectangle 7.3.png" alt=""><img class="img_gallery" src="img/Rectangle 7.2.png" alt="">
</div>
</div>
</section>
public static $workers = [ // тут выдает ошибку
"name" => "$this->name",
"email" => "$this->email",
"age" => "$this->age",
"profession" => "$this->prof",
"register_time" => 'hgh'
];
public function getWorkers() {
return [
"name" => $this->name,
"email" => $this->email,
"age" => $this->age,
"profession" => $this->prof,
"register_time" => 'hgh'
];
}
$work = new Worker("Roman", "roman@gmail.com", 23, "Web-developer");
var_dump($work->getWorkers());