Completed
Push — master ( 905bf2...f96ec1 )
by Mark
01:51
created

ListTransformer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A toFormParams() 0 9 1
1
<?php
2
3
namespace Mrkj\Transformers;
4
5
class ListTransformer
6
{
7
    public static function toFormParams(List_ $list)
8
    {
9
        return [
10
            'name' => $list->getName(),
11
            'remarks' => $list->getRemarks(),
12
            'subscribe_notification_email' => $list->getSubscribeNotificationEmail(),
13
            'unsubscribe_notification_email' => $list->getUnsubsribeNotificationEmail(),
14
        ];
15
    }
16
}