Created
December 17, 2016 11:53
-
-
Save viniciusalonso/e7702317dd815242a70940ae26638faf to your computer and use it in GitHub Desktop.
Código errado, lei de demeter
This file contains 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 Product { | |
private $value; | |
private $name; | |
public function __construct($name, $value) { | |
$this->name = $name; | |
$this->value = $value; | |
} | |
public function getValue() { | |
return $this->value; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment