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

33 lines
486 B
PHP
Raw Normal View History

2016-12-30 02:16:04 +01:00
<?php
2016-08-18 18:04:48 +02:00
2017-11-10 16:59:47 +01:00
namespace Amp\Parallel\Thread\Internal;
/**
* @internal
*/
2016-08-18 18:04:48 +02:00
class Storage extends \Threaded {
2016-08-26 17:10:03 +02:00
/** @var mixed */
private $value;
2015-09-04 01:11:58 +02:00
/**
* @param mixed $value
*/
2016-08-18 18:04:48 +02:00
public function __construct($value) {
2015-09-04 01:11:58 +02:00
$this->value = $value;
}
/**
* @return mixed
*/
2016-08-18 18:04:48 +02:00
public function get() {
return $this->value;
}
/**
* @param mixed $value
*/
2016-08-18 18:04:48 +02:00
public function set($value) {
$this->value = $value;
}
}