mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-08 01:37:36 +00:00
35 lines
618 B
PHP
35 lines
618 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Magento\Csp\Model;
|
|
|
|
/**
|
|
* Subresource Integrity data model.
|
|
*/
|
|
class SubresourceIntegrity extends \Magento\Framework\DataObject
|
|
{
|
|
/**
|
|
* Gets an integrity Path.
|
|
*
|
|
* @return string|null
|
|
*/
|
|
public function getPath(): ?string
|
|
{
|
|
return $this->getData("path");
|
|
}
|
|
|
|
/**
|
|
* Gets an integrity hash.
|
|
*
|
|
* @return string|null
|
|
*/
|
|
public function getHash(): ?string
|
|
{
|
|
return $this->getData("hash");
|
|
}
|
|
}
|