private function __construct($key, $count = 1) { if (($this->lock_id = sem_get($this->_stringToSemKey($key), $count)) === false) { throw new \RuntimeException("Cannot create semaphore for key: {$key}"); } }