markAsFinal() public method

Mark a document as final
public markAsFinal ( boolean $state = true ) : PhpPresentation
$state boolean
return PhpPresentation
 public function testMarkAsFinal()
 {
     $object = new PresentationProperties();
     $this->assertFalse($object->isMarkedAsFinal());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\PresentationProperties', $object->markAsFinal('AAAA'));
     $this->assertFalse($object->isMarkedAsFinal());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\PresentationProperties', $object->markAsFinal(true));
     $this->assertTrue($object->isMarkedAsFinal());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\PresentationProperties', $object->markAsFinal(false));
     $this->assertFalse($object->isMarkedAsFinal());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\PresentationProperties', $object->markAsFinal());
     $this->assertTrue($object->isMarkedAsFinal());
 }