Skip to content

Instantly share code, notes, and snippets.

@reginaldojunior
Created December 19, 2017 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reginaldojunior/5bead1f9189dfe237f74d83935f58f6c to your computer and use it in GitHub Desktop.
Save reginaldojunior/5bead1f9189dfe237f74d83935f58f6c to your computer and use it in GitHub Desktop.
classe a ser instanciada
<?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;
}
}
<?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