PhpOffice\PhpPresentation\Shape\Chart\PlotArea::getOffsetX PHP Метод

getOffsetX() публичный Метод

Get OffsetX (as a fraction of the chart)
public getOffsetX ( ) : float
Результат float
    public function getOffsetX()
    {
        return $this->offsetX;
    }

Usage Example

Пример #1
0
 public function testOffsetX()
 {
     $object = new PlotArea();
     $value = rand(0, 100);
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\PlotArea', $object->setOffsetX());
     $this->assertEquals(0, $object->getOffsetX());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\PlotArea', $object->setOffsetX($value));
     $this->assertEquals($value, $object->getOffsetX());
 }