<?php

namespace App\OfferProfileRules;

interface OfferDetailsInterface
{

	/**
	 * Checks the input of each offer components set. It also populates error messages into $msgs
	 * message collector.
	 * @return Boolean - if the input is ok or not.
	 */
	public function check(\App\MessagesCollector $msgs);

	/**
	 * Returns the description of the current offer component.
	 * @param boolean $fullDescription (if true - display all information about profile; if false - display less info)
	 * @return String
	 *
	 */
	public function getDescription($fullDescription=true);

}