for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* Copyright (C) 2013-2016 Mailgun
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace Mailgun\Resource\Api\Tag;
class Tag
{
/**
* @var string
private $tag;
private $description;
* @var \DateTime
private $firstSeen;
private $lastSeen;
* @param string $tag
* @param string $description
* @param \DateTime $firstSeen
* @param \DateTime $lastSeen
public function __construct($tag, $description, \DateTime $firstSeen, \DateTime $lastSeen)
$this->tag = $tag;
$this->description = $description;
$this->firstSeen = $firstSeen;
$this->lastSeen = $lastSeen;
}
* @param array $data
* @return Tag
public static function create(array $data)
return new self($data['tag'], $data['description'], $data['first-seen'], $data['last-seen']);
* @return string
public function getTag()
return $this->tag;
public function getDescription()
return $this->description;