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

DatetimeBulkUpdate::mutateAndGetPayload()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 6
rs 10
c 0
b 0
f 0
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