4 * A class for representing MediaLinks in JSON Activities
8 * @author Zach Copley <zach@status.net>
9 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
10 * @link http://status.net/
13 class ActivityStreamsMediaLink extends ActivityStreamsLink
21 $mediaType = null, // extension
22 $rel = null, // extension
26 parent::__construct($url, $rel, $mediaType);
27 $this->linkDict = array(
28 'width' => intval($width),
29 'height' => intval($height),
30 'duration' => intval($duration)
38 array_filter($this->linkDict)