1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-02 17:52:14 +01:00
parallel/lib/Sync/Internal/ParcelStorage.php

30 lines
468 B
PHP
Raw Normal View History

2017-11-29 22:05:15 +01:00
<?php
namespace Amp\Parallel\Sync\Internal
class ParcelStorage 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;
}
}