Item.php 375 B

12345678910111213141516
  1. <?php
  2. interface ItemInterface{}
  3. /**
  4. * Object to store datas collect informations
  5. * FIXME : not sur this logic is the good, I think recast all is necessary
  6. */
  7. class Item implements ItemInterface{
  8. public function __set($name, $value){
  9. $this->$name = $value;
  10. }
  11. public function __get($name){
  12. return isset($this->$name) ? $this->$name : null;
  13. }
  14. }