See More

A very common reason is a wrong site baseUrl configuration.\n

Current configured baseUrl = / (default value)\n

We suggest trying baseUrl = \n\n';var e=document.getElementById("docusaurus-base-url-issue-banner-suggestion-container"),s=window.location.pathname,r="/"===s.substr(-1)?s:s+"/";e.innerHTML=r}}window.__DOCUSAURUS_INSERT_BASEURL_BANNER=!0,document.addEventListener("DOMContentLoaded",maybeInsertBanner)

Skip to main content

quantphp

all-purpose library for a general-purpose scripting language.


class Semaphore
{
use AccessorGenerator;

#[Setter]
public bool $state = true;

#[Getter(Modifier:PROTECTED)]
private bool $isFiber = false;

public function __construct(
#[Setter] #[Getter]
public UUID $uuId
) {
{
$this->applyProperties(func_get_args());
}

protected function applyState(bool $value): mixed
{
return $this->isFiber() ? true : false;
}

}