1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-13 17:47:32 +01:00
parallel/lib/Threading/Internal/Storage.php
2016-08-26 10:10:03 -05:00

33 lines
516 B
PHP

<?php declare(strict_types = 1);
namespace Amp\Parallel\Threading\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;
}
}