public $shop;
public function __construct(){
$this->shop = new Shop;
}
#1.Showing shop basket for user
public function showBasket(){
if(!empty($this->array)){
foreach($this->array as $key => $value){
$this->shop->render($key);
echo "<br><br>";
}
}
}
$this->shop = new Shop;
class Person {
public function __construct(){
$this->name = '';
}
public function showname(){
echo $this->name;
}
}
$name = "Вася";
$person = new Person;
$person->showname();