src/Core/Schedule/Schedule.php
public function getEvents(array $tags = []): array
    {
        if ($tags === []) {
            return $this->events;
        }

        return array_filter($this->events, function (ScheduleEvent $event) use ($tags) {
            return array_intersect($event->getTags(), $tags) === $tags;
        });
    }
public function getEvents(array $tags = []): array
    {
        if ($tags === []) {
            return $this->events;
        }

        return array_filter($this->events, function (ScheduleEvent $event) use ($tags) {
            return array_intersect($event->getTags(), $tags) === $tags;
        });
    }
public function getEvents ( array $ tags = [ ] ) : array { if ( $ tags === [ ] ) { return $ this -> events ; } return array_filter ( $ this -> events , function ( ScheduleEvent $ event ) use ( $ tags ) { return array_intersect ( $ event -> getTags ( ) , $ tags ) === $ tags ; } ) ; }
Method to get property Events

@param array $tags

@return  ScheduleEvent[]

@since  3.5.3
Method to get property Events