PhpOffice\PhpPresentation\Shape\Drawing\File::getPath PHP Method

getPath() public method

Get Path
public getPath ( ) : string
return string
    public function getPath()
    {
        return $this->path;
    }

Usage Example

Example #1
0
 public function testPathWithRealFile()
 {
     $object = new File();
     $imagePath = PHPPRESENTATION_TESTS_BASE_DIR . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR . 'PhpPresentationLogo.png';
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Drawing\\File', $object->setPath($imagePath, false));
     $this->assertEquals($imagePath, $object->getPath());
     $this->assertEquals(0, $object->getWidth());
     $this->assertEquals(0, $object->getHeight());
 }