1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-12 09:09:35 +01:00
parallel/lib/Thread/Internal/Storage.php
2017-11-10 10:00:04 -06:00

33 lines
486 B
PHP

<?php
namespace Amp\Parallel\Thread\Internal;
/**
* @internal
*/
class Storage extends \Threaded {
/** @var mixed */
private $value;
/**
* @param mixed $value
*/
public function __construct($value) {
$this->value = $value;
}
/**
* @return mixed
*/
public function get() {
return $this->value;
}
/**
* @param mixed $value
*/
public function set($value) {
$this->value = $value;
}
}