PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.24
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.24
1.10.24 1.10.23 1.10.22 1.10.21 1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 1.10.1 All 168 releases
woocommerce-pos / vendor_prefixed / sentry / sentry / src / State / Layer.php

Layer.php in WCPOS – Point of Sale (POS) plugin for WooCommerce 1.10.24, at vendor_prefixed/sentry/sentry/src/State/Layer.php

73 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare (strict_types=1);
4 namespace WCPOS\Vendor\Sentry\State;
5
6 use WCPOS\Vendor\Sentry\ClientInterface;
7 /**
8 * This class holds a pair of client and scope instances for each element in the
9 * stack of a {@see Hub}.
10 *
11 * @internal
12 */
13 final class Layer
14 {
15 /**
16 * @var ClientInterface|null The client held by this layer
17 */
18 private $client;
19 /**
20 * @var Scope The scope held by this layer
21 */
22 private $scope;
23 /**
24 * Constructor.
25 *
26 * @param ClientInterface|null $client The client held by this layer
27 * @param Scope $scope The scope held by this layer
28 */
29 public function __construct(?ClientInterface $client, Scope $scope)
30 {
31 $this->client = $client;
32 $this->scope = $scope;
33 }
34 /**
35 * Gets the client held by this layer.
36 */
37 public function getClient() : ?ClientInterface
38 {
39 return $this->client;
40 }
41 /**
42 * Sets the client held by this layer.
43 *
44 * @param ClientInterface|null $client The client instance
45 *
46 * @return $this
47 */
48 public function setClient(?ClientInterface $client) : self
49 {
50 $this->client = $client;
51 return $this;
52 }
53 /**
54 * Gets the scope held by this layer.
55 */
56 public function getScope() : Scope
57 {
58 return $this->scope;
59 }
60 /**
61 * Sets the scope held by this layer.
62 *
63 * @param Scope $scope The scope instance
64 *
65 * @return $this
66 */
67 public function setScope(Scope $scope) : self
68 {
69 $this->scope = $scope;
70 return $this;
71 }
72 }
73