47 if (!is_string(
$path)) {
48 throw new \InvalidArgumentException(
"Path must be of type string.");
51 if (!is_string(
$type)) {
52 throw new \InvalidArgumentException(
"Type must be of type string.");
56 throw new \InvalidArgumentException(
"The metadata type must be FILE or DIRECTORY but \"$type\" was given.");