���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/luckymerchan/vendor/phpjuice/paypal-checkout-sdk/src/Concerns/ |
<?php namespace PayPal\Checkout\Concerns; use PayPal\Checkout\Orders\Item; trait HasCollection { /** * Determine if an attribute or relation exists on the model. * * @param string $key * * @return bool */ public function __isset(string $key) { return $this->offsetExists($key); } /** * Determine if a key exists on the items. * * @param string $offset * @return bool */ public function offsetExists(string $offset): bool { return isset($this->items[$offset]); } /** * Unset an attribute on the model. * * @param string $key * * @return void */ public function __unset(string $key) { $this->offsetUnset($key); } /** * Unset an attribute on the model. * * @param string $offset * @return void */ public function offsetUnset(string $offset) { unset($this->items[$offset]); } /** * @param mixed $offset * @param mixed $value * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->items[] = $value; } else { $this->items[$offset] = $value; } } /** * @param string $offset * @return mixed|Item|null */ public function offsetGet(string $offset) { return $this->items[$offset] ?? null; } /** * Determine if the purchase unit is empty or not. * * @return bool */ public function isEmpty(): bool { return empty($this->items); } }