Ejemplo n.º 1
0
 /**
  * Will add a structure entry to the map.
  *
  * @param \AppserverIo\Doppelgaenger\Entities\Definitions\Structure $structure The structure to add
  *
  * @return bool
  */
 public function add(Structure $structure)
 {
     // The the entry
     $this->map[$structure->getIdentifier()] = array('cTime' => $structure->getCTime(), 'identifier' => $structure->getIdentifier(), 'path' => $structure->getPath(), 'type' => $structure->getType(), 'hasAnnotations' => $structure->hasAnnotations(), 'enforced' => $structure->isEnforced());
     // Persist the map
     return $this->save();
 }