Icicle\Concurrent\Sync\PosixSemaphore::serialize PHP Method

serialize() public method

Serializes the semaphore.
public serialize ( ) : string
return string The serialized semaphore.
    public function serialize() : string
    {
        return serialize([$this->key, $this->maxLocks]);
    }