fill($amount); } class NaturalGas implements IGas { private $content = 0.0; public fill($amount) { $this-‐>content += max(0, (float)$amount); } } class Oil { } class Engine { public function __construct(IGas $gas, Oil $oil) {} } čtvrtek, 25. července 13