public function getPainel(VerificaEstadoPainel $estado) { if ($estado->getEstado() === PainelConstantes::PADRAO) { echo PainelConstantes::PADRAO; } else { return $this->proximo->getPainel($estado); } }
public function getPainel(VerificaEstadoPainel $estado) { if ($estado->getEstado() === PainelConstantes::ADMIN) { $this->imprimirPainel($estado->getClass()); } else { return $this->proximo->getPainel($estado); } }