for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the zibios/wrike-php-jmsserializer package.
*
* (c) Zbigniew Ślązak
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Zibios\WrikePhpJmsserializer\Model\Common;
use Zibios\WrikePhpJmsserializer\Model\ResourceModelInterface;
/**
* Subscription Model.
class SubscriptionModel implements ResourceModelInterface
{
* Subscription type.
* Enum: Free, Premium, Business, CreativeBusiness, Enterprise, CreativeEnterprise
* @see \Zibios\WrikePhpLibrary\Enum\SubscriptionTypeEnum
* @SA\Type("string")
* @SA\SerializedName("type")
* @var string|null
protected $type;
* Subscription is paid (available only to account admins).
* @SA\Type("boolean")
* @SA\SerializedName("paid")
* @var bool|null
protected $paid;
* Limit of subscription users (available only to account admins).
* @SA\SerializedName("userLimit")
* @var int|null
protected $userLimit;
* @return mixed
string|null
This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.
array
public function getType()
return $this->type;
}
* @param mixed $type
* @return $this
public function setType($type)
$this->type = $type;
return $this;
boolean|null
public function getPaid()
return $this->paid;
* @param mixed $paid
public function setPaid($paid)
$this->paid = $paid;
integer|null
public function getUserLimit()
return $this->userLimit;
* @param mixed $userLimit
public function setUserLimit($userLimit)
$this->userLimit = $userLimit;
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.