Completed
Push — master ( 85914a...2ce878 )
by Harald
06:39 queued 03:01
created

PagesActionsAbstract   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 20
rs 10
c 1
b 0
f 1
wmc 3
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 2
A isRPC() 0 4 1
1
<?php
2
/**
3
  * osCommerce Online Merchant
4
  *
5
  * @copyright Copyright (c) 2015 osCommerce; http://www.oscommerce.com
6
  * @license GPL; http://www.oscommerce.com/gpllicense.txt
7
  */
8
9
namespace OSC\OM;
10
11
abstract class PagesActionsAbstract implements \OSC\OM\PagesActionsInterface
12
{
13
    protected $page;
14
    protected $file;
15
    protected $is_rpc = false;
16
17
    public function __construct(\OSC\OM\PagesInterface $page)
18
    {
19
        $this->page = $page;
20
21
        if (isset($this->file)) {
22
            $this->page->setFile($this->file);
23
        }
24
    }
25
26
    public function isRPC()
27
    {
28
        return ($this->is_rpc === true);
29
    }
30
}
31