resourceType = $resourceType; parent::__construct($mutations); } /** * Returns the resourcetype of the new collection. * * @return string[] */ public 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 * * @return bool */ public function hasResourceType($resourceType) { return 0 === count(array_diff((array) $resourceType, $this->resourceType)); } }