예제 #1
0
 /**
  * Constructor
  * @param int $id type id
  */
 public function __construct($id)
 {
     $this->id = $id;
     $this->data = TypeFactory::DataFor($id);
 }
예제 #2
0
파일: Factory.php 프로젝트: schoch/Runalyze
 /**
  * Type
  * @param int $typeid
  * @return \Runalyze\Model\Type\Object
  */
 public function type($typeid)
 {
     return new Type\Object(\TypeFactory::DataFor($typeid));
 }