PhpOffice\PhpPresentation\Style\Alignment::getHorizontal PHP Méthode

getHorizontal() public méthode

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

Usage Example

 /**
  * 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());
 }