Magician.php 335 B

123456789101112131415161718
  1. <?php
  2. namespace Symfony\Tests\Component\Form\Fixtures;
  3. class Magician
  4. {
  5. private $properties = array();
  6. public function __set($name, $value)
  7. {
  8. $this->properties[$name] = $value;
  9. }
  10. public function __get($name)
  11. {
  12. return isset($this->properties[$name]) ? $this->properties[$name] : null;
  13. }
  14. }