<?php
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Magento\Sales\Model;

/**
 * Interface ValidatorResultInterface
 */
interface ValidatorResultInterface
{
    /**
     * @param string $message
     * @return void
     */
    public function addMessage($message);

    /**
     * @return bool
     */
    public function hasMessages();

    /**
     * @return string[]
     */
    public function getMessages();
}
