src/Bean/Collector/TaskCollector.php
private static function collectScheduled(string $className, Scheduled $objectAnnotation, string $methodName)
    {
        if (!isset(self::$tasks['mapping'][$className])) {
            return;
        }

        $cron     = $objectAnnotation->getCron();
        $taskName = self::$tasks['mapping'][$className];

        self::$tasks['crons'][] = [
            'cron'      => $cron,
            'task'      => $taskName,
            'method'    => $methodName,
            'className' => $className,
        ];
    }
private static function collectScheduled(string $className, Scheduled $objectAnnotation, string $methodName)
    {
        if (!isset(self::$tasks['mapping'][$className])) {
            return;
        }

        $cron     = $objectAnnotation->getCron();
        $taskName = self::$tasks['mapping'][$className];

        self::$tasks['crons'][] = [
            'cron'      => $cron,
            'task'      => $taskName,
            'method'    => $methodName,
            'className' => $className,
        ];
    }
private static function collectScheduled ( string $ className , Scheduled $ objectAnnotation , string $ methodName ) { if ( ! isset ( self :: $ tasks [ 'mapping' ] [ $ className ] ) ) { return ; } $ cron = $ objectAnnotation -> getCron ( ) ; $ taskName = self :: $ tasks [ 'mapping' ] [ $ className ] ; self :: $ tasks [ 'crons' ] [ ] = [ 'cron' => $ cron , 'task' => $ taskName , 'method' => $ methodName , 'className' => $ className , ] ; }
collect the annotation of Scheduled

@param string    $className
@param Scheduled $objectAnnotation
@param string    $methodName
collect the annotation of Scheduled