Skip to content

Instantly share code, notes, and snippets.

@iamricard
Created August 31, 2014 13:11
Show Gist options
  • Save iamricard/db9d23ae690d59bab6b1 to your computer and use it in GitHub Desktop.
Save iamricard/db9d23ae690d59bab6b1 to your computer and use it in GitHub Desktop.
PHP example
<?php
class Dosificador {
private $name;
public function getName() {
return $this->name;
}
public function setName($name) {
$this->name = $name;
}
}
$d = new Dosificador;
$d->setName('hello world');
echo $d->getName();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment