vendor/omnipay/common/src/Omnipay/Common/Item.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* Cart Item
*/
namespace Omnipay\Common;
use Symfony\Component\HttpFoundation\ParameterBag;
/**
* Cart Item
*
* This class defines a single cart item in the Omnipay system.
*
* @see ItemInterface
*/
class Item implements ItemInterface
{
/**
* @var \Symfony\Component\HttpFoundation\ParameterBag
*/
protected $parameters;
/**
* Create a new item with the specified parameters
*
* @param array|null $parameters An array of parameters to set on the new object
*/
public function __construct($parameters = null)
{
$this->initialize($parameters);
}
/**
* Initialize this item with the specified parameters
*
* @param array|null $parameters An array of parameters to set on this object
* @return $this Item
*/
public function initialize($parameters = null)
{
$this->parameters = new ParameterBag;
Helper::initialize($this, $parameters);
return $this;
}
public function getParameters()
{
return $this->parameters->all();
}
protected function getParameter($key)
{
return $this->parameters->get($key);
}
protected function setParameter($key, $value)
{
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。