Completed
Branch EDTR/master (3804a3)
by
unknown
26:10 queued 16:56
created

DatetimeBulkUpdate   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A mutateAndGetPayload() 0 6 1
1
<?php
2
3
namespace EventEspresso\core\domain\services\graphql\mutators;
4
5
use EEM_Datetime;
6
use EventEspresso\core\domain\services\graphql\types\Datetime;
7
8
class DatetimeBulkUpdate extends EntityMutator
9
{
10
11
    /**
12
     * Defines the mutation data modification closure.
13
     *
14
     * @param EEM_Datetime $model
15
     * @param Datetime     $type
16
     * @return callable
17
     */
18
    public static function mutateAndGetPayload(EEM_Datetime $model, Datetime $type)
19
    {
20
        $entityMutator = DatetimeUpdate::mutateAndGetPayload($model, $type);
21
        $bulkMutator = new BulkEntityMutator($entityMutator);
22
        return array($bulkMutator, 'updateEntities');
23
    }
24
}
25