public function getRate() { return $this->foreing / $this->home / ($this->default->getForeing() / $this->default->getHome()); }
public function __construct($foreing, $code, $home, $country, $name) { parent::__construct($home, $code, $foreing); $this->country = $country; $this->name = $name; }