From 5f41e5f969d8168952f487e497fc74e8a7c3cc62 Mon Sep 17 00:00:00 2001 From: Tony Edson Torres de Morais Date: Mon, 31 Oct 2016 23:09:24 -0300 Subject: [PATCH] usando printf para aumentar legibilidade. usar o printf deixa o codigo mais legivel aqui. --- src/App/Edmo/Cliente.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/App/Edmo/Cliente.php b/src/App/Edmo/Cliente.php index c351407..d2fd779 100644 --- a/src/App/Edmo/Cliente.php +++ b/src/App/Edmo/Cliente.php @@ -32,8 +32,11 @@ public function getNome() */ public function update(SplSubject $subject) { - print 'O Cliente '.$this->getNome().' recebeu a notificação do produto ' - .$subject->getNome().' por R$ '.$subject->getValor()."\n"; + printf("O Cliente %s recebeu a notificação do produto %s por R$ %s.\n", + $this->getNome(), + $subject->getNome(), + $subject->getValor() + ); } -} \ No newline at end of file +}