for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
// ---------------------------------------------------------------------
//
// Copyright (C) 2018-2024 Artem Rodygin
// You should have received a copy of the MIT License along with
// this file. If not, see <https://opensource.org/licenses/MIT>.
namespace Linode\Longview;
use Linode\Entity;
use Linode\Linode\Price;
/**
* A Longview Subscriptions represents a tier of Longview service you can subscribe
* to.
*
* @property string $id The unique ID of this Subscription tier.
* @property string $label A display name for this Subscription tier.
* @property int $clients_included The number of Longview Clients that may be created with this Subscription tier.
* @property Price $price Pricing information about this Subscription tier.
*/
class LongviewSubscription extends Entity
{
// Available fields.
public const FIELD_ID = 'id';
public const FIELD_LABEL = 'label';
public const FIELD_CLIENTS_INCLUDED = 'clients_included';
public const FIELD_PRICE = 'price';
* @codeCoverageIgnore This method was autogenerated.
public function __get(string $name): mixed
return match ($name) {
self::FIELD_PRICE => new Price($this->client, $this->data[$name]),
default => parent::__get($name),
};
}