jeyroik/extas-base

View on GitHub
src/interfaces/IHasUpdatedAt.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace extas\interfaces;

/**
 * Interface IHasUpdatedAt
 *
 * @package extas\interfaces
 * @author jeyroik@gmail.com
 */
interface IHasUpdatedAt
{
    public const FIELD__UPDATED_AT = 'updated_at';

    /**
     * @param string $format
     *
     * @return string|int
     */
    public function getUpdatedAt(string $format = '');

    /**
     * @param int|\DateTime $time
     * @return $this
     */
    public function setUpdatedAt($time);
}