Commit 4e47fd81 authored by brice's avatar brice
Browse files

Fix minor bugs in namespace usage

parent 331e4343
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
namespace Libcast\Client\Entity; namespace Libcast\Client\Entity;
use Libcast\Client\Model\FileInterface; use Libcast\Client\Model\FileInterface;
use Libcast\Client\Model\ResourceInterface;
use Libcast\Client\Model\StreamInterface;
use JMS\Serializer\Annotation\Type; use JMS\Serializer\Annotation\Type;
use JMS\Serializer\Annotation\XmlRoot; use JMS\Serializer\Annotation\XmlRoot;
......
...@@ -273,10 +273,10 @@ class Media extends Entity implements MediaInterface ...@@ -273,10 +273,10 @@ class Media extends Entity implements MediaInterface
} }
/** /**
*
* @deprecated since 2.1.16 * @deprecated since 2.1.16
* @see self::streams() * @see self::streams()
* *
* @param array $filters
* @return Collection of Stream * @return Collection of Stream
*/ */
public function getStreams($filters = array()) public function getStreams($filters = array())
......
...@@ -38,7 +38,7 @@ class Profile extends Entity implements ProfileInterface ...@@ -38,7 +38,7 @@ class Profile extends Entity implements ProfileInterface
/** /**
* *
* @Type("Libcast\Client\Entity\Permissions") * @Type("Libcast\Client\Entity\Permissions")
* @var Libcast\Client\Entity\Permissions * @var \Libcast\Client\Entity\Permissions
*/ */
protected $permissions; protected $permissions;
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
namespace Libcast\Client\Entity; namespace Libcast\Client\Entity;
use Libcast\Client\Model\ResourceInterface; use Libcast\Client\Model\ResourceInterface;
use Libcast\Client\Entity\Flavor;
use JMS\Serializer\Annotation\Type; use JMS\Serializer\Annotation\Type;
use JMS\Serializer\Annotation\XmlRoot; use JMS\Serializer\Annotation\XmlRoot;
...@@ -103,7 +102,7 @@ class Resource extends Entity implements ResourceInterface ...@@ -103,7 +102,7 @@ class Resource extends Entity implements ResourceInterface
/** /**
* *
* @Type("Libcast\Client\Entity\UsageCollection") * @Type("Libcast\Client\Entity\UsageCollection")
* @var Libcast\Client\Entity\UsageCollection * @var \Libcast\Client\Entity\UsageCollection
*/ */
protected $usages; protected $usages;
...@@ -153,9 +152,10 @@ class Resource extends Entity implements ResourceInterface ...@@ -153,9 +152,10 @@ class Resource extends Entity implements ResourceInterface
/** /**
* *
* @param string $title * @param null $file
* @param string $subtitle * @param null $title
* @param string $publishedAt * @param null $subtitle
* @param null $publishedAt
* @param string $visibility * @param string $visibility
*/ */
public function __construct($file = null, $title = null, $subtitle = null, $publishedAt = null, $visibility = 'visible') public function __construct($file = null, $title = null, $subtitle = null, $publishedAt = null, $visibility = 'visible')
...@@ -344,7 +344,7 @@ class Resource extends Entity implements ResourceInterface ...@@ -344,7 +344,7 @@ class Resource extends Entity implements ResourceInterface
*/ */
public function getFlavor($name) public function getFlavor($name)
{ {
foreach ($this->getFlavors() as $flavor) { /* @var $flavor Flavor */ foreach ($this->getFlavors() as $flavor) { /* @var $flavor \Libcast\Client\Entity\Flavor */
if ($name === $flavor->getName()) { if ($name === $flavor->getName()) {
return $flavor; return $flavor;
} }
......
...@@ -30,7 +30,7 @@ class Role extends Entity implements RoleInterface ...@@ -30,7 +30,7 @@ class Role extends Entity implements RoleInterface
/** /**
* *
* @Type("Libcast\Client\Entity\Permissions") * @Type("Libcast\Client\Entity\Permissions")
* @var Libcast\Client\Entity\Permissions * @var \Libcast\Client\Entity\Permissions
*/ */
protected $permissions; protected $permissions;
......
...@@ -12,18 +12,6 @@ use JMS\Serializer\Annotation\SerializedName; ...@@ -12,18 +12,6 @@ use JMS\Serializer\Annotation\SerializedName;
/** /**
* *
* @XmlRoot("user") * @XmlRoot("user")
* @method Client setAddress(string $address)
* @method Client setApiKey(string $apiKey)
* @method Client setCity(string $city)
* @method Client setCountry(string $country)
* @method Client setFirstName(string $firstName)
* @method Client setLanguage(string $language)
* @method Client setLastName(string $lastName)
* @method Client setPassword(string $password)
* @method Client setProfile(string $profile) Profile URL or profile slug
* @method Client setTelephone(string $telephone)
* @method Client setUsername(string $username)
* @method Client setZipcode(string $zipcode)
*/ */
class User extends Entity implements UserInterface class User extends Entity implements UserInterface
{ {
...@@ -109,7 +97,7 @@ class User extends Entity implements UserInterface ...@@ -109,7 +97,7 @@ class User extends Entity implements UserInterface
/** /**
* *
* @return Libcast\Client\Entity\Platform * @return \Libcast\Client\Entity\Platform
*/ */
public function getPlatform() public function getPlatform()
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment