mirror of
https://github.com/friendica/friendica
synced 2025-04-26 16:30:12 +00:00
Move OTYPE constants to own enum class
This commit is contained in:
parent
e42b843505
commit
97b6f6b3b3
4 changed files with 16 additions and 6 deletions
|
@ -31,10 +31,6 @@ use Psr\Log\LoggerInterface;
|
|||
*/
|
||||
class Notify extends BaseModel
|
||||
{
|
||||
const OTYPE_ITEM = 'item';
|
||||
const OTYPE_INTRO = 'intro';
|
||||
const OTYPE_MAIL = 'mail';
|
||||
const OTYPE_PERSON = 'person';
|
||||
|
||||
/** @var \Friendica\Repository\Notify */
|
||||
private $repo;
|
||||
|
|
14
src/Model/Notify/ObjectType.php
Normal file
14
src/Model/Notify/ObjectType.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Model\Notify;
|
||||
|
||||
/**
|
||||
* Enum for different otypes of the Notify
|
||||
*/
|
||||
class ObjectType
|
||||
{
|
||||
const PERSON = 'person';
|
||||
const MAIL = 'mail';
|
||||
const ITEM = 'item';
|
||||
const INTRO = 'intro';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue