本文整理汇总了PHP中Store::working_hours方法的典型用法代码示例。如果您正苦于以下问题:PHP Store::working_hours方法的具体用法?PHP Store::working_hours怎么用?PHP Store::working_hours使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Store
的用法示例。
在下文中一共展示了Store::working_hours方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: working_hours
$day = "weekday";
}
return $day;
}
public function working_hours()
{
$day1 = $this->isWeekend();
if ($day1 == "weekend") {
echo "<br/> Working Hours of {$this->name}: <br/> 10h. - 16h. <br/>";
} elseif ($day1 == "weekday") {
echo "<br/> Working Hours of {$this->name}: <br/> 9h. - 19h. <br/>";
}
}
}
$pearPhone = new Product('PearPhone', 'TX300', 'Phone', 750, 17, 2014);
$pearPhone->show_info();
$pearPhone->buyItems(15);
$pearPhone->show_info();
$pearPhone->isAvailable();
$pearPhone->year = 2015;
echo "Release year corrected. New year: {$pearPhone->year}. <br/>";
echo "Review of the product: {$pearPhone->review} <br/>";
$pearBook = new Product('PearBook', 'L350', 'Notebook', 1250, 21, 2015);
$pearBook->show_info();
$pearBook->newItems(16);
$main_store = new Store('p-Store', 'Pear Street 75', 'Michael Sheldon', 1200000, 800, 18);
$main_store->show_store();
$sec_store = new Store('NoteBook', 'Fearville Street 18', 'George Kennedy', 3500875, 958, 25);
$sec_store->show_store();
$sec_store->working_hours();
$sec_store->hire_employee('Carter Flemings', 'manager', 2150);