‪TYPO3CMS  ‪main
Image.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
22 class ‪Image
23 {
29  protected ‪$url;
30 
34  protected ‪$width;
35 
39  protected ‪$height;
40 
46  public function ‪__construct(‪$url, ‪$width, ‪$height)
47  {
48  $this->url = ‪$url;
49  $this->width = (int)‪$width;
50  $this->height = (int)‪$height;
51  }
52 
58  public function ‪getUrl()
59  {
60  return ‪$this->url;
61  }
62 
66  public function ‪getWidth()
67  {
68  return ‪$this->width;
69  }
70 
74  public function ‪getHeight()
75  {
76  return ‪$this->height;
77  }
78 }
‪TYPO3\CMS\Backend\Backend\Avatar\Image\getHeight
‪int getHeight()
Definition: Image.php:71
‪TYPO3\CMS\Backend\Backend\Avatar\Image\__construct
‪__construct($url, $width, $height)
Definition: Image.php:43
‪TYPO3\CMS\Backend\Backend\Avatar\Image\$url
‪string $url
Definition: Image.php:28
‪TYPO3\CMS\Backend\Backend\Avatar\Image\$width
‪int $width
Definition: Image.php:32
‪TYPO3\CMS\Backend\Backend\Avatar\Image\$height
‪int $height
Definition: Image.php:36
‪TYPO3\CMS\Backend\Backend\Avatar
Definition: Avatar.php:18
‪TYPO3\CMS\Backend\Backend\Avatar\Image\getWidth
‪int getWidth()
Definition: Image.php:63
‪TYPO3\CMS\Backend\Backend\Avatar\Image
Definition: Image.php:23
‪TYPO3\CMS\Backend\Backend\Avatar\Image\getUrl
‪string getUrl()
Definition: Image.php:55