Completed
Pull Request — master (#13)
by Alexandre
13:17 queued 11:14
created

Sms   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 14
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A notifyOwner() 0 4 1
1
<?php
2
3
namespace AppBundle\Service\Dev;
4
5
use AppBundle\Service\Sms as BaseSms;
6
use Psr\Log\LoggerInterface;
7
8
class Sms extends BaseSms
9
{
10
    private $logger;
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
11
12
    public function __construct(LoggerInterface $logger)
13
    {
14
        $this->logger = $logger;
15
    }
16
17
    public function notifyOwner($message)
18
    {
19
        $this->logger->info('SMS - Notified owner with content: '.$message);
20
    }
21
}
22