for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Guillermoandrae\Highrise\Models;
final class AccountModel extends AbstractModel
{
/**
* The account subdomain.
*
* @var string
*/
protected $subdomain;
* The account plan.
protected $plan;
* The number of people associated with the account.
* @var int
protected $peopleCount;
* The account storage.
protected $storage;
* The account color theme.
protected $colorTheme;
* Whether or not SSL (TLS) is enabled.
* @var bool
protected $sslEnabled;
use GroupAndOwnerAwareTrait;
public function __construct(string $xml)
parent::__construct($xml);
$this->subdomain = (string) $this->getXml()->xpath('//subdomain')[0];
$this->plan = (string) $this->getXml()->xpath('//plan')[0];
$this->ownerId = (int) $this->getXml()->xpath('//owner-id')[0];
$this->peopleCount = (int) $this->getXml()->xpath('//people-count')[0];
$this->storage = (int) $this->getXml()->xpath('//storage')[0];
$this->colorTheme = (string) $this->getXml()->xpath('//color_theme')[0];
}
* @return string
public function getSubdomain(): string
return $this->subdomain;
public function getPlan(): string
return $this->plan;
public function getOwnerId(): string
return $this->ownerId;
* @return int
public function getPeopleCount(): int
return $this->peopleCount;
public function getStorage(): int
return $this->storage;
public function getColorTheme(): string
return $this->colorTheme;
* @return bool
public function isSslEnabled(): bool
return $this->sslEnabled;