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

MessageNotIntendedForPublisher::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 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