bkdotcom/PHPDebugConsole

View on GitHub
src/Teams/Cards/AbstractCard.php

Summary

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

namespace bdk\Teams\Cards;

use bdk\Teams\AbstractItem;

/**
 * Abstract card
 */
abstract class AbstractCard extends AbstractItem implements CardInterface
{
    /**
     * Returns card data
     *
     * @return array
     */
    abstract public function getMessage();

    /**
     * Specify data which should be serialized to JSON
     *
     * @return array
     */
    #[\ReturnTypeWillChange]
    public function jsonSerialize()
    {
        return $this->getMessage();
    }
}