setData() public method

public setData ( mixed $data ) : static
$data mixed
return static
Beispiel #1
0
 /**
  * @param $name
  * @param $type
  * @param $data
  * @param bool $inherited
  * @param bool $inheritable
  * @return $this
  */
 public function setProperty($name, $type, $data, $inherited = false, $inheritable = false)
 {
     $this->getProperties();
     $property = new Model\Property();
     $property->setType($type);
     $property->setCid($this->getId());
     $property->setName($name);
     $property->setCtype("object");
     $property->setData($data);
     $property->setInherited($inherited);
     $property->setInheritable($inheritable);
     $this->o_properties[$name] = $property;
     return $this;
 }