-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from akirk/break-out/instance
Hookify: Instance endpoints.
- Loading branch information
Showing
7 changed files
with
814 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
/** | ||
* Domain Block entity. | ||
* | ||
* This contains the Domain Block entity. | ||
* | ||
* @package Enable_Mastodon_Apps | ||
*/ | ||
|
||
namespace Enable_Mastodon_Apps\Entity; | ||
|
||
/** | ||
* Represents a domain that is blocked by the instance. | ||
* | ||
* @since 0.7.0 | ||
* | ||
* @package Enable_Mastodon_Apps | ||
*/ | ||
class Domain_Block extends Entity { | ||
/** | ||
* The types of the properties. | ||
* | ||
* @var array | ||
*/ | ||
protected $_types = array( | ||
'domain' => 'string', | ||
'digest' => 'string', | ||
'severity' => 'string', | ||
'comment' => 'string', | ||
); | ||
|
||
/** | ||
* The domain that is blocked. | ||
* | ||
* @var string | ||
*/ | ||
public string $domain = ''; | ||
|
||
/** | ||
* The SHA256 hash of the domain that is blocked. | ||
* | ||
* @var string | ||
*/ | ||
public string $digest = ''; | ||
|
||
/** | ||
* The severity of the domain block. | ||
* | ||
* @var string | ||
*/ | ||
public string $severity = ''; | ||
|
||
/** | ||
* An optional reason for the domain block. | ||
* | ||
* @var string | ||
*/ | ||
public string $comment = ''; | ||
} |
Oops, something went wrong.