AbstractRequestPlugin::getTarget()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/**
4
 * AbstractRequestPlugin.php - Jaxon Request interface
5
 *
6
 * Interface for Jaxon Request plugins.
7
 *
8
 * Request plugins handle the registration, client script generation and processing of jaxon enabled requests.
9
 * Each plugin should have a unique signature for both the registration and processing of requests.
10
 * During registration, the user will specify a type which will allow the plugin to detect and handle it.
11
 * During client script generation, the plugin will generate a <jaxon.request> stub with the prescribed call options and request signature.
12
 * During request processing, the plugin will detect the signature generated previously and process the request accordingly.
13
 *
14
 * @package jaxon-core
15
 * @author Jared White
16
 * @author J. Max Wilson
17
 * @author Joseph Woolley
18
 * @author Steffen Konerow
19
 * @author Thierry Feuzeu <[email protected]>
20
 * @copyright Copyright (c) 2005-2007 by Jared White & J. Max Wilson
21
 * @copyright Copyright (c) 2008-2010 by Joseph Woolley, Steffen Konerow, Jared White  & J. Max Wilson
22
 * @copyright 2016 Thierry Feuzeu <[email protected]>
23
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
24
 * @link https://github.com/jaxon-php/jaxon-core
25
 */
26
27
namespace Jaxon\Plugin;
28
29
use Jaxon\Request\Target;
30
31
abstract class AbstractRequestPlugin extends AbstractPlugin implements CallableRegistryInterface, RequestHandlerInterface
32
{
33
    /**
34
     * @var Target
35
     */
36
    protected $xTarget = null;
37
38
    /**
39
     * @inheritDoc
40
     */
41
    public function getTarget(): ?Target
42
    {
43
        return $this->xTarget;
44
    }
45
}
46