<?php public function writeProcessId(int $masterProcessId): void
{
if (! is_writable($this->path) && ! is_writable(dirname($this->path))) {
throw new RuntimeException('Unable to write to process ID file.');
}
<?php public function writeState(array $newState): void
{
if (! is_writable($this->path) && ! is_writable(dirname($this->path))) {
throw new RuntimeException('Unable to write to process ID file.');
}
<?php public function writeProcessIds(int $masterProcessId, int $managerProcessId): void
{
if (! is_writable($this->path) && ! is_writable(dirname($this->path))) {
throw new RuntimeException('Unable to write to process ID file.');
}
<?php public function writeState(array $newState): void
{
if (! is_writable($this->path) && ! is_writable(dirname($this->path))) {
throw new RuntimeException('Unable to write to process ID file.');
}