public static function writeable($value, $message = null, $propertyPath = null)
{
static::string($value, $message, $propertyPath);
if (!is_writeable($value)) {
$message = sprintf($message ?: 'Path "%s" was expected to be writeable.', static::stringify($value));
throw static::createException($value, $message, static::INVALID_WRITEABLE, $propertyPath);
}
return true;
}