for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of Phraseanet SDK.
*
* (c) Alchemy <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PhraseanetSDK\Entity;
class DataboxTermsOfUse
{
public static function fromList(array $values)
$terms = array();
foreach ($values as $value) {
$terms[$value->locale] = self::fromValue($value);
}
return $terms;
public static function fromValue(\stdClass $value)
return new self($value);
/**
* @var \stdClass
protected $source;
* @param \stdClass $source
public function __construct(\stdClass $source)
$this->source = $source;
* @return \stdClass
public function getRawData()
return $this->source;
* @return string
public function getLocale()
return $this->source->locale;
public function getTerms()
return $this->source->terms;