InfoObject::getLinkTarget()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 2
eloc 2
c 1
b 0
f 1
nc 2
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 2
rs 10
1
<?php
2
/*******************************************************************
3
 * Created by:  Marko Kungla @ OkramLabs on Aug 6, 2012 - 9:52:48
4
 * Contact:     [email protected] - https://okramlabs.com
5
 * @copyright   2015 OkramLabs - https://okramlabs.com
6
 * @license     MIT
7
 *
8
 * Package name:libhowi-filesystem
9
 * @category	HOWI3
10
 * @package		libhowi
11
 * @subpackage	filesystem
12
 * 
13
 * Lang:      PHP
14
 * Encoding:  UTF-8
15
 * File:      InfoObject.inc
16
 * @link      https://
17
 ********************************************************************
18
 * Contributors:
19
 * @author Marko Kungla <[email protected]>
20
 *           Github: https://github.com/mkungla
21
 ********************************************************************
22
 * Comments:
23
 */
24
namespace HOWI3\libhowi\Filesystem\php7\Objects;
25
26
use \SplFileInfo;
27
use \HOWI3\libhowi\Filesystem\Commons\ObjectInterfaces\InfoInterface;
28
use \HOWI3\libhowi\Filesystem\php7\TraitForSharedMethods;
29
30
31
class InfoObject extends SplFileInfo implements InfoInterface
32
{
33
    use TraitForSharedMethods;
34
35 1
    public function getLinkTarget()
36
    {
37 1
        return $this->isLink() ? parent::getLinkTarget() : false;
38
    }
39
    
40 1
    public function getFileInfo($class_name = '\HOWI3\libhowi\Filesystem\php7\Objects\InfoObject')
41
    {
42 1
        return parent::getFileInfo($class_name);
43
    }
44
}