<?php
/**
 * Width Decorator
 * 
 * @author Elze Kool <info@visualmedia.nl>
 */

namespace VisualM\ManagementBundle\AdminList\Column\Decorator;

use VisualM\ManagementBundle\AdminList\Column\ColumnConfigurationInterface;

/**
 * Width Decorator
 *
 * @author Elze Kool <info@visualmedia.nl>
 */
class WidthDecorator implements ColumnDecoratorInterface
{
    /**
     * Width
     * @var string
     */
    private $width;

    /**
     * Column
     * @var ColumnConfigurationInterface 
     */
    private $column;

    /**
     * Constructor
     *
     * @param string                       $width  Width
     * @param ColumnConfigurationInterface $column Column
     */
    public function __construct($width, ColumnConfigurationInterface $column)
    {
        $this->width = $width;
        $this->column = $column;
    }

    /**
     * {@inheritdoc}
     */
    public function getColumn()
    {
        return $this->column;
    }

    /**
     * {@inheritdoc}
     */
    public function getWidth()
    {
        return $this->width;
    }

    /**
     * {@inheritdoc}
     */
    public function getSpan()
    {
        return '';
    }
    
}