Completed
Push — master ( 8849ee...a1b70f )
by Andreas
24:35
created

org_openpsa_invoices_navigation::get_leaves()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 0
dl 0
loc 10
ccs 7
cts 7
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @package org.openpsa.invoices
4
 * @author Nemein Oy, http://www.nemein.com/
5
 * @copyright Nemein Oy, http://www.nemein.com/
6
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License
7
 */
8
9
/**
10
 * org.openpsa.invoices NAP interface class.
11
 *
12
 * @package org.openpsa.invoices
13
 */
14
class org_openpsa_invoices_navigation extends midcom_baseclasses_components_navigation
15
{
16 1
    public function get_leaves()
17
    {
18
        return [
19 1
            "{$this->_topic->id}:scheduled" => [
20 1
                MIDCOM_NAV_URL => "scheduled/",
21 1
                MIDCOM_NAV_NAME => $this->_l10n->get('scheduled invoices'),
22
            ],
23 1
            "{$this->_topic->id}:projects" => [
24 1
                MIDCOM_NAV_URL => "projects/",
25 1
                MIDCOM_NAV_NAME => $this->_l10n->get('project invoicing'),
26
            ],
27
        ];
28
    }
29
}
30