Completed
Push — master ( 759a1b...0704c6 )
by Mark
01:43
created

ListTransformer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

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