PhpOffice\PhpPresentation\PhpPresentation::setDocumentProperties PHP Method

setDocumentProperties() public method

Set properties
public setDocumentProperties ( PhpOffice\PhpPresentation\DocumentProperties $value ) : PhpPresentation
$value PhpOffice\PhpPresentation\DocumentProperties
return PhpPresentation
    public function setDocumentProperties(DocumentProperties $value)
    {
        $this->documentProperties = $value;
        return $this;
    }

Usage Example

 public function testProperties()
 {
     $object = new PhpPresentation();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\DocumentProperties', $object->getProperties());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\DocumentProperties', $object->getDocumentProperties());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\PhpPresentation', $object->setProperties(new DocumentProperties()));
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\DocumentProperties', $object->getProperties());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\DocumentProperties', $object->getDocumentProperties());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\PhpPresentation', $object->setDocumentProperties(new DocumentProperties()));
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\DocumentProperties', $object->getProperties());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\DocumentProperties', $object->getDocumentProperties());
 }