<?php

error_reporting(-1);
mb_internal_encoding('utf-8');

class Worker {
	public $name;
	public $level;
	public $chief;
	public $coffe;
	public $paid;
	public $pages;
	
	public function drinkCoffe() {
		if ($this->chief) {
			return ($coffe *2);
		} else {
			return $coffe;
		}
	}
}
class Manager extends Worker {
	public function __construct($name, $level, $chief) {
		$this->name = $name;
		$this->level = $level;
		$this->chief = $chief;
		$this->coffe = 20;
		$this->paid = 500;
		$this->pages = 200;
	}
}
$stv = new Manager('Peter', 1, True);
echo $stv->drinkCoffe();
?>