public function checkTransitions(\ArrayAccess $context = null) { $this->acquireLockOrThrowException(); if (!$context) { $context = new \ArrayIterator(array()); } $this->doCheckTransitions($context); $this->mutex->releaseLock(); }