Your IP : 216.73.216.97


Current Path : /var/www/clients/client3/web2/web/vendor/astock/stock-api-libphp/src/Models/
Upload File :
Current File : /var/www/clients/client3/web2/web/vendor/astock/stock-api-libphp/src/Models/StockFileCompProp.php

<?php
/**
 * Copyright 2017 Adobe Systems Incorporated. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 */

namespace AdobeStock\Api\Models;

class StockFileCompProp
{
    /**
     * Width in pixels of the asset's complementary (unlicensed) image.
     * @var int
     */
    public $width;
    
    /**
     * Height in pixels of the asset's complementary (unlicensed) image.
     * @var int
     */
    public $height;
    
    /**
     * URL to the watermarked version of the asset.
     * @var string
     */
    public $url;
    /**
     * Constructor for StockFileCompProp
     * @param array $raw_response Array contains value of various keys of StockFileCompProp Class
     */
    public function __construct(array $raw_response)
    {
        foreach ($raw_response as $key => $val) {
            if (property_exists($this, $key)) {
                $this->$key = $val;
            }
        }
    }
    
    /**
     * Get width of complementary image.
     * @return int|null
     */
    public function getWidth() : ?int
    {
        return $this->width;
    }
    
    /**
     * Sets width of complementary image.
     * @param int $width
     * @return StockFileCompProp
     */
    public function setWidth(int $width = null)
    {
        $this->width = $width;
        return $this;
    }
    
    /**
     * Get height of complementary image.
     * @return int|null
     */
    public function getHeight() : ?int
    {
        return $this->height;
    }
    
    /**
     * Sets Height of complementary image.
     * @param int $height
     * @return StockFileCompProp
     */
    public function setHeight(int $height = null) : StockFileCompProp
    {
        $this->height = $height;
        return $this;
    }
    
    /**
     * Get url of complementary image.
     * @return string|null
     */
    public function getUrl() : string
    {
        return $this->url;
    }
    /**
     * Sets url of complementary image.
     * @param string $url url of complementary image.
     * @return StockFileCompProp
     */
    public function setUrl(string $url = null) : StockFileCompProp
    {
        $this->url = $url;
        return $this;
    }
}