for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the FOSRestBundle package.
*
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FOS\RestBundle\Controller\Annotations;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
/**
* View annotation class.
* @Annotation
* @Target({"METHOD","CLASS"})
class View extends Template
{
* @var int
protected $statusCode;
* @var array
protected $serializerGroups;
* @var bool
protected $serializerEnableMaxDepthChecks;
* @param int $statusCode
public function setStatusCode($statusCode)
$this->statusCode = $statusCode;
}
* @return int
public function getStatusCode()
return $this->statusCode;
* @param array $serializerGroups
public function setSerializerGroups($serializerGroups)
$this->serializerGroups = $serializerGroups;
* @return array
public function getSerializerGroups()
return $this->serializerGroups;
* @param bool $serializerEnableMaxDepthChecks
public function setSerializerEnableMaxDepthChecks($serializerEnableMaxDepthChecks)
$this->serializerEnableMaxDepthChecks = $serializerEnableMaxDepthChecks;
* @return bool
public function getSerializerEnableMaxDepthChecks()
return $this->serializerEnableMaxDepthChecks;