src/CodeGeneration/Action/CreateEmbeddableAction.php
public function run(): void
    {
        if ('' === (string)$this->catName) {
            throw new \RuntimeException('You must call setCatName before running this action');
        }
        if ('' === (string)$this->name) {
            throw new \RuntimeException('You must call setName before running this action');
        }
        $this->fakerDataCreator->setCatName($this->catName)->setName($this->name)->createTargetFileObject()->write();
        $this->interfaceCreator->setCatName($this->catName)->setName($this->name)->createTargetFileObject()->write();
        $this->hasInterfaceCreator->setCatName($this->catName)->setName($this->name)->createTargetFileObject()->write();
        $this->embeddableCreator->setCatName($this->catName)->setName($this->name)->createTargetFileObject()->write();
        $this->hasCreator->setCatName($this->catName)->setName($this->name)->createTargetFileObject()->write();
    }
public function run(): void
    {
        if ('' === (string)$this->catName) {
            throw new \RuntimeException('You must call setCatName before running this action');
        }
        if ('' === (string)$this->name) {
            throw new \RuntimeException('You must call setName before running this action');
        }
        $this->fakerDataCreator->setCatName($this->catName)->setName($this->name)->createTargetFileObject()->write();
        $this->interfaceCreator->setCatName($this->catName)->setName($this->name)->createTargetFileObject()->write();
        $this->hasInterfaceCreator->setCatName($this->catName)->setName($this->name)->createTargetFileObject()->write();
        $this->embeddableCreator->setCatName($this->catName)->setName($this->name)->createTargetFileObject()->write();
        $this->hasCreator->setCatName($this->catName)->setName($this->name)->createTargetFileObject()->write();
    }
public function run ( ) : void { if ( '' === ( string ) $ this -> catName ) { throw new \ RuntimeException ( 'You must call setCatName before running this action' ) ; } if ( '' === ( string ) $ this -> name ) { throw new \ RuntimeException ( 'You must call setName before running this action' ) ; } $ this -> fakerDataCreator -> setCatName ( $ this -> catName ) -> setName ( $ this -> name ) -> createTargetFileObject ( ) -> write ( ) ; $ this -> interfaceCreator -> setCatName ( $ this -> catName ) -> setName ( $ this -> name ) -> createTargetFileObject ( ) -> write ( ) ; $ this -> hasInterfaceCreator -> setCatName ( $ this -> catName ) -> setName ( $ this -> name ) -> createTargetFileObject ( ) -> write ( ) ; $ this -> embeddableCreator -> setCatName ( $ this -> catName ) -> setName ( $ this -> name ) -> createTargetFileObject ( ) -> write ( ) ; $ this -> hasCreator -> setCatName ( $ this -> catName ) -> setName ( $ this -> name ) -> createTargetFileObject ( ) -> write ( ) ; }
This must be the method that actually performs the action

All your requirements, configuration and dependencies must be called with individual setters
This must be the method that actually performs the action