for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Threema GmbH
* @copyright Copyright (c) 2015-2016 Threema GmbH
*/
namespace Threema\MsgApi\Tools;
class FileAnalysisResult {
* @var string
private $mimeType;
* @var int
private $size;
private $path;
* @param string $mimeType
* @param int $size
* @param string $path
public function __construct($mimeType, $size, $path) {
$this->mimeType = $mimeType;
$this->size = $size;
$this->path = realpath($path);
}
* @return string
public function getMimeType() {
return $this->mimeType;
* @return int
public function getSize() {
return $this->size;
public function getPath() {
return $this->path;
public function getFileName() {
return basename($this->path);