How to ultilize these formulas($arvores_repor: [volume] * 6;) and ($total_pagar: [number of trees]) in the code to make a calculation?

Asked

Viewed 16 times

0

<?php


class  cal{

private $avore_repor;
private $volume;
private $valor_pagar;


public function setArvores_repor($r){
    $this->arvores_repor = $r;

}

public function getArvores_repor() {
        return $this->arvores_repor;

}

public function setVolume($v){
    $this->volume = $v;

}

public function getVolume() {
        return $this->volume;

}

public function setValor_pagar($p){
    $this->valor_pagar = $p ;

}

public function getValor_pagar() {
        return $this->valor_pagar ;

}

public function cal(){

}


}
?>
  • 1

    Don’t just put your question in the title. Explain it better and give an example of the result you expect to get. This way someone might be able to help.

  • In addition to what @edsonalves said, if you can, put what you’ve done so far beyond a class.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.