Something went wrong. Try again.
Laravel AT Protocol Client (alpha & unstable)
Something went wrong. Try again.
1.2 kB · 54 lines
PHP
at dev
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455<?php
namespace SocialDept\AtpClient\Client;
use SocialDept\AtpClient\AtpClient;use SocialDept\AtpClient\Client\Requests\Ozone;use SocialDept\AtpClient\Concerns\HasDomainExtensions;
class OzoneClient{ use HasDomainExtensions; /** * The parent AtpClient instance */ protected AtpClient $atp;
/** * Moderation operations (tools.ozone.moderation.*) */ public Ozone\ModerationRequestClient $moderation;
/** * Server operations (tools.ozone.server.*) */ public Ozone\ServerRequestClient $server;
/** * Team operations (tools.ozone.team.*) */ public Ozone\TeamRequestClient $team;
public function __construct(AtpClient $parent) { $this->atp = $parent; $this->moderation = new Ozone\ModerationRequestClient($this); $this->server = new Ozone\ServerRequestClient($this); $this->team = new Ozone\TeamRequestClient($this); }
protected function getDomainName(): string { return 'ozone'; }
protected function getRootClientClass(): string { return AtpClient::class; }
public function root(): AtpClient { return $this->atp; }}