public function testGetSetInformations() { $object = new PhpProject(); $oInformations = new DocumentInformations(); $this->assertInstanceOf('PhpOffice\\PhpProject\\DocumentInformations', $object->getInformations()); $this->assertInstanceOf('PhpOffice\\PhpProject\\PhpProject', $object->setInformations($oInformations)); $this->assertInstanceOf('PhpOffice\\PhpProject\\DocumentInformations', $object->getInformations()); }
/** * Project Header * @param array $record */ private function readRecord30(array $record) { // 0 : Record // 1 : Project tab // 2 : Company // 3 : Manager // 4 : Calendar (Standard used if no entry) // 5 : Start Date (either this field or the next field is calculated for an imported file, depending on the Schedule From setting) if (isset($record[5]) && !empty($record[5])) { $this->phpProject->getInformations()->setStartDate($record[5]); } // 6 : Finish Date //if (isset($record[6]) && !empty($record[6])) { // $this->phpProject->getInformations()->setEndDate($record[6]); //} // 7 : Schedule From (0 = start, 1 = finish) // 8 : Current Date* // 9 : Comments // 10 : Cost* // 11 : Baseline Cost // 12 : Actual Cost // 13 : Work // 14 : Baseline Work // 15 : Actual Work // 16 : Work // 17 : Duration // 18 : Baseline Duration // 19 : Actual Duration // 20 : Percent Complete // 21 : Baseline Start // 22 : Baseline Finish // 23 : Actual Start // 24 : Actual Finish // 25 : Start Variance // 26 : Finish Variance // 27 : Subject // 28 : Author // 29 : Keywords }