mirror of
https://github.com/danog/parallel.git
synced 2025-01-22 14:01:14 +01:00
30 lines
390 B
PHP
30 lines
390 B
PHP
|
<?php
|
||
|
namespace Icicle\Concurrent\Threading\Internal;
|
||
|
|
||
|
/**
|
||
|
* @internal
|
||
|
*/
|
||
|
class Storage extends \Threaded
|
||
|
{
|
||
|
/**
|
||
|
* @var mixed
|
||
|
*/
|
||
|
private $value;
|
||
|
|
||
|
/**
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public function get()
|
||
|
{
|
||
|
return $this->value;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param mixed $value
|
||
|
*/
|
||
|
public function set($value)
|
||
|
{
|
||
|
$this->value = $value;
|
||
|
}
|
||
|
}
|