public function __construct($orderID) { $this->orderItems = array(); $this->orderID = $orderID; $selector = new DBSelect('localhost', 'root', '', 'mydb'); $this->storeName = $selector->selectStoreNameByOrderID($orderID); }