This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
109 additions
and
7 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
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,44 @@ | ||
<?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 ZendTest\Hydrator\TestAsset; | ||
|
||
class ArraySerializableNoGetArrayCopy | ||
{ | ||
protected $data = []; | ||
|
||
public function __construct() | ||
{ | ||
$this->data = [ | ||
"foo" => "bar", | ||
"bar" => "foo", | ||
"blubb" => "baz", | ||
"quo" => "blubb" | ||
]; | ||
} | ||
|
||
/** | ||
* Exchange internal values from provided array | ||
* | ||
* @param array $array | ||
* @return void | ||
*/ | ||
public function exchangeArray(array $array) | ||
{ | ||
$this->data = $array; | ||
} | ||
|
||
/** | ||
* Returns the internal data | ||
*/ | ||
public function getData() | ||
{ | ||
return $this->data; | ||
} | ||
} |