exportedResource = $exportedResource; } public function getName() { return get_class($this); } /** * @return \core_kernel_classes_Resource */ public function getExportedResource() { return $this->exportedResource; } public function jsonSerialize() { return [ 'exportedResource' => $this->exportedResource->getUri() ]; } }