Item.php 467 B

1234567891011121314151617181920
  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. // FIXME : use the arrayInterface instead
  9. public $enclosures = array();
  10. public function __set($name, $value){
  11. $this->$name = $value;
  12. }
  13. public function __get($name){
  14. return (isset($this->$name) ? $this->$name : null);
  15. }
  16. }