PpsFile::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 0 Features 0
Metric Value
c 4
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 1
1
<?php
2
3
namespace Xls\OLE;
4
5
class PpsFile extends PPS
6
{
7
    /**
8
     * The constructor
9
     *
10
     * @param string $name The name of the file (in Unicode)
11
     */
12
    public function __construct($name)
13
    {
14
        parent::__construct(
15
            null,
16
            OLE::asc2Ucs($name),
17
            self::PPS_TYPE_FILE
18
        );
19
    }
20
}
21