Наследование: extends AbstractModelFile
Пример #1
0
 /**
  *
  */
 public function testDestination()
 {
     $instance = self::bingGeneratorInstance();
     $model = new EmptyModel($instance, 'ClassMap');
     $classMap = new ClassMapFile($instance, $model->getPackagedName());
     $classMap->setModel($model);
     $this->assertSame(sprintf('%s%s', self::getTestDirectory(), ClassMapFile::SRC_FOLDER), $classMap->getFileDestination());
 }
Пример #2
0
 /**
  * @return ClassMapFile
  */
 public function getClassmapFile()
 {
     if (!isset($this->classmapFile)) {
         $classMapModel = new EmptyModel($this->generator, 'ClassMap');
         $classMap = new ClassMapFile($this->generator, $classMapModel->getPackagedName());
         $classMap->setModel($classMapModel);
         $this->classmapFile = $classMap;
     }
     return $this->classmapFile;
 }