* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Workflow; /** * Marking contains the place of every tokens. * * @author Grégoire Pineau */ class Marking { private $places = array(); /** * @param int[] $representation Keys are the place name and values should be 1 */ public function __construct(array $representation = array()) { foreach ($representation as $place => $nbToken) { $this->mark($place); } } public function mark($place) { $this->places[$place] = 1; } public function unmark($place) { unset($this->places[$place]); } public function has($place) { return isset($this->places[$place]); } public function getPlaces() { return $this->places; } } __halt_compiler();----SIGNATURE:----upznOMdnI+WE3imFs8B3t54A8WdXk4zqdGJBxysCll4w0VfRIefn19btMZfFlyzq+vdsQ0cVe/PftXTbEl4GrSDWqdfJFFffMI0i/Y4DJY7zSN4sUMtAEyixgr8jPycsQMC3l6iDYYkOd1TcoJI1AK1oOM3Md2kHA0VYnbYJ6XwwU28hQYFZJp/lghh311cWjZFLWbzYlB6Ekg5l0wI9M+IHSPVyC01JQu6mq38kYrcwgXBlm46n3pO4DpX4HPuXJAZBj+n38BRlXSyPoynZc2U7roF9EXoXZgpSltru82JiIpYVBZ2ifD7ArhG2p2JBY88uTtiPycM45oInAQR1BmdeIy6+7yG9iu0NjyOWqDe0+zctlnFweUKJpLIMdvfvYzitDzR3dDqc67caXx3DMmY39ggT27WrBlyeQJK/IcTeZK4lhD0F9VOfcqz3241r/jxihLNXq8ohPAAN/lYoYPuDOiL7r/WCz8TD4xPxGqqCFN9QW4hQsJ9OEKVBqVtLKb0AOnyJ+L23QV1k1Hfp3NrNGyfOGJM/16uyIJnH7BrV65kuQPXWhYrofKKjAZDP5R8xjUk5Lz1oLq41KPWBPMFNKz1U5MOAaRFnSY2jpgrQi8XoC6623jJM/lY1MGyPx2bQpxF7JcWNgfBZguvAHb50ZB5JQ2FINrrkOr28PVM=----ATTACHMENT:----MjcyNTQzODYzMjgwMTcyNyA1MTMyNTM4Nzg3NTQ3MzIyIDQzMDUyMzI5NTc4ODM2NjA=