Skip to content

Commit

Permalink
more thoughts
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Feb 6, 2021
1 parent 911be44 commit 0a9569b
Show file tree
Hide file tree
Showing 9 changed files with 626 additions and 44 deletions.
48 changes: 48 additions & 0 deletions src/ACL/ACLNodeIdentity.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?php declare(strict_types=1);

namespace DCarbone\PHPConsulAPI\ACL;

/*
Copyright 2016-2021 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

use DCarbone\PHPConsulAPI\AbstractModel;

/**
* Class ACLNodeIdentity
*/
class ACLNodeIdentity extends AbstractModel
{
/** @var string */
public string $NodeName = '';
/** @var string */
public string $Datacenter = '';

/**
* @return string
*/
public function getNodeName(): string
{
return $this->NodeName;
}

/**
* @return string
*/
public function getDatacenter(): string
{
return $this->Datacenter;
}
}
48 changes: 48 additions & 0 deletions src/ACL/ACLServiceIdentity.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?php declare(strict_types=1);

namespace DCarbone\PHPConsulAPI\ACL;

/*
Copyright 2016-2021 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

use DCarbone\PHPConsulAPI\AbstractModel;

/**
* Class ACLServiceIdentity
*/
class ACLServiceIdentity extends AbstractModel
{
/** @var string */
public string $ServiceName = '';
/** @var array */
public array $Datacenters = [];

/**
* @return string
*/
public function getServiceName(): string
{
return $this->ServiceName;
}

/**
* @return array
*/
public function getDatacenters(): array
{
return $this->Datacenters;
}
}
Loading

0 comments on commit 0a9569b

Please sign in to comment.