public function __get($tag) { $iterator = new self(); foreach ($this->tags as $innerTag) { $iterator->addTag($tag, $innerTag); } return $iterator; }