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

ListTransformer::toFormParams()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 6
nc 1
nop 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
}