Skip to content

Commit da7f4c8

Browse files
committed
#161 : Deprecate some code (LayoutPack & TemplateBased)
1 parent 3edd852 commit da7f4c8

File tree

8 files changed

+9
-2
lines changed

8 files changed

+9
-2
lines changed

src/PhpPresentation/Reader/ReaderInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public function canRead($pFilename);
3434
* Loads PhpPresentation from file
3535
*
3636
* @param string $pFilename
37+
* @return \PhpOffice\PhpPresentation\PhpPresentation
3738
* @throws \Exception
3839
*/
3940
public function load($pFilename);

src/PhpPresentation/Writer/PowerPoint2007.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class PowerPoint2007 extends AbstractWriter implements WriterInterface
4848

4949
/**
5050
* Layout pack to use
51-
*
51+
* @deprecated 0.7
5252
* @var \PhpOffice\PhpPresentation\Writer\PowerPoint2007\LayoutPack\AbstractLayoutPack
5353
*/
5454
protected $layoutPack;
@@ -188,6 +188,7 @@ public function getDiskCachingDirectory()
188188
/**
189189
* Get layout pack to use
190190
*
191+
* @deprecated 0.7
191192
* @return \PhpOffice\PhpPresentation\Writer\PowerPoint2007\LayoutPack\AbstractLayoutPack
192193
*/
193194
public function getLayoutPack()
@@ -198,6 +199,7 @@ public function getLayoutPack()
198199
/**
199200
* Set layout pack to use
200201
*
202+
* @deprecated 0.7
201203
* @param \PhpOffice\PhpPresentation\Writer\PowerPoint2007\LayoutPack\AbstractLayoutPack $pValue
202204
* @return \PhpOffice\PhpPresentation\Writer\PowerPoint2007
203205
*/

src/PhpPresentation/Writer/PowerPoint2007/LayoutPack/AbstractLayoutPack.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
/**
2121
* \PhpOffice\PhpPresentation\Writer\PowerPoint2007\LayoutPack
22+
* @deprecated 0.7
2223
*/
2324
abstract class AbstractLayoutPack
2425
{

src/PhpPresentation/Writer/PowerPoint2007/LayoutPack/PackDefault.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
/**
2323
* \PhpOffice\PhpPresentation\Writer\PowerPoint2007\LayoutPack\Default
24+
* @deprecated 0.7
2425
*/
2526
class PackDefault extends AbstractLayoutPack
2627
{

src/PhpPresentation/Writer/PowerPoint2007/LayoutPack/TemplateBased.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
/**
2121
* \PhpOffice\PhpPresentation\Writer\PowerPoint2007\LayoutPack\TemplateBased
22+
* @deprecated 0.7
2223
*/
2324
class TemplateBased extends AbstractLayoutPack
2425
{

src/PhpPresentation/Writer/PowerPoint2007/Relationships.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use PhpOffice\PhpPresentation\Shape\Comment;
66
use PhpOffice\PhpPresentation\Shape\Comment\Author;
7-
use PhpOffice\PhpPresentation\Writer\PowerPoint2007\LayoutPack\PackDefault;
87
use PhpOffice\Common\XMLWriter;
98

109
class Relationships extends AbstractDecoratorWriter

tests/PhpPresentation/Tests/Writer/PowerPoint2007/LayoutPack/TemplateBasedTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
/**
2424
* Test class for TemplateBased
2525
*
26+
* @deprecated 0.7
2627
* @coversDefaultClass TemplateBased
2728
*/
2829
class TemplateBasedTest extends \PHPUnit_Framework_TestCase

tests/PhpPresentation/Tests/Writer/PowerPoint2007Test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ public function testCachingException()
129129

130130
/**
131131
* Test LayoutPack
132+
* @deprecated 0.7
132133
*/
133134
public function testLayoutPack()
134135
{

0 commit comments

Comments
 (0)