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

getVertical() public method

Get Vertical
public getVertical ( ) : string
return string
    public function getVertical()
    {
        return $this->vertical;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Test get/set vertical
  */
 public function testSetGetVertical()
 {
     $object = new Alignment();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Alignment', $object->setVertical(''));
     $this->assertEquals(Alignment::VERTICAL_BASE, $object->getVertical());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Alignment', $object->setVertical(Alignment::VERTICAL_AUTO));
     $this->assertEquals(Alignment::VERTICAL_AUTO, $object->getVertical());
 }