Created
December 19, 2017 12:38
-
-
Save reginaldojunior/5bead1f9189dfe237f74d83935f58f6c to your computer and use it in GitHub Desktop.
classe a ser instanciada
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Kaito | |
{ | |
private $poeta; | |
private $iceblue; | |
private $relacionamentoSerio; | |
public function setPoeta($poeta) | |
{ | |
$this->poeta = $poeta; | |
} | |
public function getPoeta() | |
{ | |
return $this->poeta; | |
} | |
public function setIceBlue($iceblue) | |
{ | |
$this->iceblue = $iceblue; | |
} | |
public function getIceBlue() | |
{ | |
return $this->iceblue; | |
} | |
public function setRelacionamentoSerio($relacionamentoSerio) | |
{ | |
$this->relacionamentoSerio = $relacionamentoSerio; | |
} | |
public function getRelacionamentoSerio() | |
{ | |
$this->relacionamentoSerio; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$Kaito = new Kaito; | |
$Kaito->setRelacionamentoSerio(true); | |
$Kaito->setIceBlue(false); | |
$Kaito->setPoeta($this->getPoeta() + 1); | |
$Kaito->setRelacionamentoSerio(false); | |
$Kaito->setIceBlue(true); | |
$Kaito->setPoeta($this->getPoeta() - 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment