for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* GpsLab component.
*
* @author Peter Gribanov <[email protected]>
* @copyright Copyright (c) 2011, Peter Gribanov
* @license http://opensource.org/licenses/MIT
*/
namespace GpsLab\Component\ImageMeta;
class DataMeta
{
* @var int
protected $width = 0;
protected $height = 0;
* @var string
protected $mime = '';
* @param int $width
* @param int $height
* @param string $mime
public function __construct($width, $height, $mime)
$this->width = $width;
$this->height = $height;
$this->mime = $mime;
}
* @return int
public function width()
return $this->width;
public function weight()
return $this->height;
* @return string
public function mime()
return $this->mime;
* @return array
public function toArray()
return [
'width' => $this->width(),
'height' => $this->weight(),
'mime' => $this->mime(),
];