<?php

namespace Mnv\Core\Uploads;

/**
 * Class Watermark
 * @package Mnv\Core\Imagine
 */
class Watermark
{

    public $image;

    const POSITION_TOP_LEFT     = 'TOP LEFT';
    const POSITION_TOP_RIGHT    = 'TOP RIGHT';
    const POSITION_BOTTOM_LEFT  = 'BOTTOM LEFT';
    const POSITION_BOTTOM_RIGHT = 'BOTTOM RIGHT';
    const POSITION_CENTER       = 'CENTER CENTER';

    /**
     * @param string $key
     * @return string
     */
    public static function getPositions(string $key): string
    {
        $positions =  [
            self::POSITION_TOP_LEFT     => 'TOP LEFT',
            self::POSITION_TOP_RIGHT    => 'TOP RIGHT',
            self::POSITION_BOTTOM_LEFT  => 'BOTTOM LEFT',
            self::POSITION_BOTTOM_RIGHT => 'BOTTOM RIGHT',
            self::POSITION_CENTER       => 'CENTER CENTER',
        ];

        return $positions[$key];
    }
}