public function getMainTaskGroup(): array
    {
        if (null === $this->mainTaskGroup) {
            $mainTask = $this->getMainTask();

            foreach ($this->getDependencyGroups() as $branch) {
                if (\in_array($mainTask->getCode(), $branch, true)) {
                    $this->mainTaskGroup = $branch;
                    break;
                }
            }
        }

        return $this->mainTaskGroup;
    }
public function getMainTaskGroup(): array
    {
        if (null === $this->mainTaskGroup) {
            $mainTask = $this->getMainTask();

            foreach ($this->getDependencyGroups() as $branch) {
                if (\in_array($mainTask->getCode(), $branch, true)) {
                    $this->mainTaskGroup = $branch;
                    break;
                }
            }
        }

        return $this->mainTaskGroup;
    }
public function getMainTaskGroup ( ) : array { if ( null === $ this -> mainTaskGroup ) { $ mainTask = $ this -> getMainTask ( ) ; foreach ( $ this -> getDependencyGroups ( ) as $ branch ) { if ( \ in_array ( $ mainTask -> getCode ( ) , $ branch , true ) ) { $ this -> mainTaskGroup = $ branch ; break ; } } } return $ this -> mainTaskGroup ; }
Get the main task group that will be executed
It may be defined by the entry_point, or the end_point or simply the first task

If one task depend from another, it should come after

@throws \CleverAge\ProcessBundle\Exception\MissingTaskConfigurationException

@return array
Get the main task group that will be executed It may be defined by the entry_point or the end_point or simply the first task