Newscoop\Image\Rendition::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( integer $width, integer $height, string $specs = 'fit', string $name = null, integer $offset = null, string $label = null )
$width integer
$height integer
$specs string
$name string
$offset integer
$label string
    public function __construct($width, $height, $specs = 'fit', $name = null, $offset = null, $label = null)
    {
        $this->width = (int) $width;
        $this->height = (int) $height;
        $this->specs = (string) $specs;
        $this->name = (string) $name;
        $this->offset = (int) $offset;
        $this->label = (string) $label;
    }