SearchRequest::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * This file is part of the Ssdp project.
4
 *
5
 * @author Daniel Schröder <[email protected]>
6
 */
7
8
namespace GravityMedia\Ssdp\Request;
9
10
use GravityMedia\Ssdp\Client;
11
use Zend\Diactoros\Request;
12
13
/**
14
 * Search request class
15
 *
16
 * @package GravityMedia\Ssdp\Request
17
 */
18
class SearchRequest extends Request
19
{
20
    /**
21
     * The method
22
     */
23
    const METHOD = 'M-SEARCH';
24
25
    /**
26
     * Create search request object
27
     */
28
    public function __construct()
29
    {
30
        parent::__construct(sprintf('%s:%s', Client::MULTICAST_ADDRESS, Client::MULTICAST_PORT), self::METHOD);
31
    }
32
}
33