<?php
/**
 * Generic warning
 */
class Loco_error_Warning extends Loco_error_Exception {
    
    /**
     * {@inheritdoc}
     */
    public function getType(){
        return 'warning';
    }


    /**
     * {@inheritdoc}
     */
    public function getTitle(){
        return __('Warning','loco-translate');
    }


    /**
     * {@inheritdoc}
     */
    public function getLevel(){
        return Loco_error_Exception::LEVEL_WARNING;
    }


    /**
     * {@inheritDoc}
     */
    public function logCli(){
        WP_CLI::warning( $this->getMessage() );
    }

}