src/Bean/Collector/TaskCollector.php
private static function collectTask(string $className, Task $objectAnnotation)
    {
        $name = $objectAnnotation->getName();
        $beanName = empty($name) ? $className : $name;
        $coroutine = $objectAnnotation->isCoroutine();

        self::$tasks['mapping'][$className] = $beanName;
        self::$tasks['task'][$beanName] = [
            $className,
            $coroutine
        ];
    }
private static function collectTask(string $className, Task $objectAnnotation)
    {
        $name = $objectAnnotation->getName();
        $beanName = empty($name) ? $className : $name;
        $coroutine = $objectAnnotation->isCoroutine();

        self::$tasks['mapping'][$className] = $beanName;
        self::$tasks['task'][$beanName] = [
            $className,
            $coroutine
        ];
    }
private static function collectTask ( string $ className , Task $ objectAnnotation ) { $ name = $ objectAnnotation -> getName ( ) ; $ beanName = empty ( $ name ) ? $ className : $ name ; $ coroutine = $ objectAnnotation -> isCoroutine ( ) ; self :: $ tasks [ 'mapping' ] [ $ className ] = $ beanName ; self :: $ tasks [ 'task' ] [ $ beanName ] = [ $ className , $ coroutine ] ; }
collect the annotation of task

@param string $className
@param Task   $objectAnnotation
collect the annotation of task