Passed
Push — develop ( fefadb...6c2c37 )
by Martin
32s
created

MessageNotIntendedForPublisher   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MartinGeorgiev\SocialPost\Provider;
6
7
use DomainException;
8
9
/**
10
 * @since 2.0.0
11
 * @author Martin Georgiev <[email protected]>
12
 * @license https://opensource.org/licenses/MIT MIT
13
 * @link https://github.com/martin-georgiev/social-post-bundle Package's homepage
14
 */
15
class MessageNotIntendedForPublisher extends DomainException
16
{
17
    public function __construct(string $socialNetwork)
18
    {
19
        $message = sprintf('The message is not intended to be published on %s', $socialNetwork);
20
        parent::__construct($message);
21
    }
22
}
23