/**
  * @param Tag $tag
  * @param int $offset
  * @param int $limit
  * @param string $order
  * @return AttributeCollection
  */
 public function findAttributesForTag(Tag $tag, $offset = 0, $limit = PHP_INT_MAX, $order = 'name ASC')
 {
     return $this->findAttributesByTagId($tag->getId());
 }
 /**
  * @param ClassGenerator $class
  * @param Tag $tagItem
  */
 protected function addAttributes(ClassGenerator $class, Tag $tagItem)
 {
     foreach ($tagItem->getAttributes() as $tagAttribute) {
         $this->addAttribute($class, $tagAttribute);
     }
 }
 /**
  * @param array $row
  * @return Tag
  */
 private function createEntity(array $row)
 {
     $entity = new Tag();
     $entity->setId((int) $row['id']);
     $entity->setName($row['name']);
     $entity->setLink($row['link']);
     $entity->setShortDescription($row['short_description']);
     $entity->setLongDescription($row['long_description']);
     $entity->setIsVoid((int) $row['is_void'] === 1);
     $entity->setIsGlobalAttributeAware((int) $row['is_global_attribute_aware'] === 1);
     $entity->setIsClipboardEventAware((int) $row['is_clipboard_event_aware'] === 1);
     $entity->setIsFormEventAware((int) $row['is_form_event_aware'] === 1);
     $entity->setIsKeyboardEventAware((int) $row['is_keyboard_event_aware'] === 1);
     $entity->setIsMediaEventAware((int) $row['is_media_event_aware'] === 1);
     $entity->setIsMiscEventAware((int) $row['is_misc_event_aware'] === 1);
     $entity->setIsMouseEventAware((int) $row['is_mouse_event_aware'] === 1);
     $entity->setIsWindowEventAware((int) $row['is_window_event_aware'] === 1);
     return $entity;
 }