resourceType = $resourceType; parent::__construct($mutations); } /** * Returns the resourcetype of the new collection. * * @return string[] */ function getResourceType() { return $this->resourceType; } /** * Returns true or false if the MKCOL operation has at least the specified * resource type. * * If the resourcetype is specified as an array, all resourcetypes are * checked. * * @param string|string[] $resourceType */ function hasResourceType($resourceType) { return count(array_diff((array)$resourceType, $this->resourceType)) === 0; } }