Alimentalos/Backend

View on GitHub
relationships/src/Attributes/AlertAttribute.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php


namespace Alimentalos\Relationships\Attributes;


trait AlertAttribute
{
    /**
     * Lost type.
     */
    public $lost = 0;

    /**
     * Dead type.
     */
    public $dead = -1;

    /**
     * Found type.
     */
    public $found = 1;

    /**
     * Available alert types.
     *
     * @return array
     */
    public function types()
    {
        return [
            $this->lost,
            $this->dead,
            $this->found,
        ];
    }
}