for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Twitter\Object;
use Twitter\TwitterEntity;
abstract class AbstractTwitterMedia extends TwitterEntity
{
/**
* @var int
*/
private $id;
* @var string
protected $mediaUrl;
protected $mediaUrlHttps;
protected $url;
protected $displayUrl;
protected $expandedUrl;
* @var TwitterMediaSize[]
protected $sizes;
protected $type;
* Init.
*
* @param int $id
* @param string $mediaUrl
* @param string $mediaUrlHttps
* @param string $url
* @param string $displayUrl
* @param string $expandedUrl
* @param TwitterMediaSize[] $sizes
* @param string $type
* @param TwitterEntityIndices $indices
protected function initTwitterMedia(
$id = null,
$mediaUrl = null,
$mediaUrlHttps = null,
$url = null,
$displayUrl = null,
$expandedUrl = null,
array $sizes = [],
$type = null,
TwitterEntityIndices $indices = null
) {
$this->initTwitterEntity($indices);
$this->displayUrl = $displayUrl;
$this->expandedUrl = $expandedUrl;
$this->id = $id;
$this->mediaUrl = $mediaUrl;
$this->mediaUrlHttps = $mediaUrlHttps;
$this->sizes = $sizes;
$this->type = $type;
$this->url = $url;
}
* @return string
public function getDisplayUrl()
return $this->displayUrl;
public function getExpandedUrl()
return $this->expandedUrl;
* @return int
public function getId()
return $this->id;
public function getMediaUrl()
return $this->mediaUrl;
public function getMediaUrlHttps()
return $this->mediaUrlHttps;
* @return TwitterMediaSize[]
public function getSizes()
return $this->sizes;
public function getType()
return $this->type;
public function getUrl()
return $this->url;