<?php
namespace SabaiApps\Directories\Component\Field\Type;

use SabaiApps\Directories\Component\Field\IField;
use SabaiApps\Directories\Component\Entity\Type\IEntity;

interface IDateRange {

	/**
	 * @param IField $field
	 * @return array [start_column => string, end_column => string|null]
	 */
	public function fieldDateRangeInfo( IField $field );
	/**
	 * @param IField  $field
	 * @param IEntity $entity
	 * @return array [start => timestamp, end => timestamp|null]
	 */
	public function fieldDateRange( IField $field, IEntity $entity );
}
