for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* Copyright (c) 2015 Nate Brunette.
* Distributed under the MIT License (http://opensource.org/licenses/MIT)
*/
namespace Tebru\Retrofit\Annotation;
use Tebru\Dynamo\Annotation\DynamoAnnotation;
/**
* Indicates that the body of the request should be multipart encoded
*
* @author Nate Brunette <[email protected]>
* @Annotation
* @Target({"CLASS", "METHOD"})
class Multipart implements DynamoAnnotation
{
const NAME = 'multipart';
* If boundary is specified
* @var string
private $boundary;
* Constructor
* @param array $params
public function __construct(array $params)
$this->boundary = (isset($params['boundary'])) ? $params['boundary'] : null;
}
* Get the boundary
* @return string
public function getBoundary()
return $this->boundary;
* The name of the annotation or class of annotations
public function getName()
return self::NAME;
* Whether or not multiple annotations of this type can
* be added to a method
* @return bool
public function allowMultiple()
return false;