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

Get Name
public getName ( ) : string
Результат string
Пример #1
0
 /**
  * Test get/set name
  */
 public function testSetGetName()
 {
     $object = new Font();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setName());
     $this->assertEquals('Calibri', $object->getName());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setName(''));
     $this->assertEquals('Calibri', $object->getName());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setName('Arial'));
     $this->assertEquals('Arial', $object->getName());
 }