src/Environaut/Checks/Check.php
public function setName($name = null)
    {
        if (null === $name || !is_string($name)) {
            $this->name = self::getRandomString(8);
        } else {
            $this->name = $name;
        }

        return $this;
    }
public function setName($name = null)
    {
        if (null === $name || !is_string($name)) {
            $this->name = self::getRandomString(8);
        } else {
            $this->name = $name;
        }

        return $this;
    }
Sets the name of the check. When null or a non-string value is given a random name is set.

@param string $name name of the check

@return Check this instance for fluent API support