malkusch\lock\mutex\FlockMutex::__construct PHP Метод

__construct() публичный Метод

Sets the file handle.
public __construct ( resource $fileHandle )
$fileHandle resource The file handle.
    public function __construct($fileHandle)
    {
        if (!is_resource($fileHandle)) {
            throw new \InvalidArgumentException("The file handle is not a valid resource.");
        }
        $this->fileHandle = $fileHandle;
    }