StackFormation\Stack::getName PHP Метод

getName() публичный Метод

public getName ( )
    public function getName()
    {
        return $this->data['StackName'];
    }

Usage Example

 protected function executeWithStack(Stack $stack, InputInterface $input, OutputInterface $output)
 {
     $this->dependencyTracker->reset();
     foreach ($this->blueprintFactory->getAllBlueprints() as $blueprint) {
         $blueprint->getPreprocessedTemplate();
     }
     $dependants = $this->dependencyTracker->findDependantsForStack($stack->getName());
     $rows = [];
     foreach ($dependants as $dependant) {
         $rows[] = [$dependant['targetType'] . ':' . $dependant['targetResource'], $dependant['type'] . ':' . $dependant['blueprint'] . ':' . $dependant['key']];
     }
     $output->writeln("Following blueprints depend on stack '{$stack->getName()}':");
     $table = new Table($output);
     $table->setHeaders(['Origin (Stack: ' . $stack->getName() . ')', 'Blueprint'])->setRows($rows)->render();
 }
All Usage Examples Of StackFormation\Stack::getName