forked from juriansluiman/Soflomo-Purifier
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zf3 updates: duplicate trait and interface
- Loading branch information
Showing
3 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link http://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
namespace Soflomo\Purifier; | ||
|
||
interface MutableCreationOptionsInterface | ||
{ | ||
/** | ||
* Set creation options | ||
* | ||
* @param array $options | ||
* @return void | ||
*/ | ||
public function setCreationOptions(array $options); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link http://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
namespace Soflomo\Purifier; | ||
|
||
/** | ||
* Trait for MutableCreationOptions Factories | ||
*/ | ||
trait MutableCreationOptionsTrait | ||
{ | ||
/** | ||
* @var array | ||
*/ | ||
protected $creationOptions = array(); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
/** | ||
* Set creation options | ||
* | ||
* @param array $creationOptions | ||
* @return void | ||
*/ | ||
public function setCreationOptions(array $creationOptions) | ||
{ | ||
$this->creationOptions = $creationOptions; | ||
} | ||
|
||
/** | ||
* Get creation options | ||
This comment has been minimized.
Sorry, something went wrong.
maestroevn
|
||
* | ||
* @return array | ||
*/ | ||
public function getCreationOptions() | ||
{ | ||
return $this->creationOptions; | ||
} | ||
} |
@haroutweb Please use array short syntax [] instead of array()