PhpOffice\PhpPresentation\Style\Alignment::getHorizontal PHP Method

getHorizontal() public method

Get Horizontal
public getHorizontal ( ) : string
return string
    public function getHorizontal()
    {
        return $this->horizontal;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Test get/set horizontal
  */
 public function testSetGetHorizontal()
 {
     $object = new Alignment();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Alignment', $object->setHorizontal(''));
     $this->assertEquals(Alignment::HORIZONTAL_LEFT, $object->getHorizontal());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Alignment', $object->setHorizontal(Alignment::HORIZONTAL_GENERAL));
     $this->assertEquals(Alignment::HORIZONTAL_GENERAL, $object->getHorizontal());
 }