Completed
Push — feature/add-cli-installers ( f84756...de0d3c )
by Steven
13:33
created

Notification   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A send() 0 13 1
1
<?php namespace Magestead\Service;
2
3
use Joli\JoliNotif\Notification as Notify;
4
use Joli\JoliNotif\NotifierFactory;
5
6
class Notification
7
{
8
    public static function send()
9
    {
10
        $notifier = NotifierFactory::create();
11
        $basePath = dirname( __FILE__ ) . '/../../../';
12
        $notification =
13
            (new Notify())
14
                ->setTitle('Magestead')
15
                ->setBody('Magento has successfully been installed!')
16
                ->setIcon($basePath .'assets/magentologo.png')
17
        ;
18
19
        $notifier->send($notification);
20
    }
21
}