public function __set($tag, $data) { foreach ($this->getByTag($tag) as $child) { $child->setData($data); } return $this; }