secure-custom-fields
/
vendor
/
justinrainbow
/
json-schema
/
src
/
JsonSchema
/
Uri
/
Retrievers
/
AbstractRetriever.php
secure-custom-fields
/
vendor
/
justinrainbow
/
json-schema
/
src
/
JsonSchema
/
Uri
/
Retrievers
Last commit date
AbstractRetriever.php
9 months ago
Curl.php
9 months ago
FileGetContents.php
9 months ago
PredefinedArray.php
9 months ago
UriRetrieverInterface.php
9 months ago
AbstractRetriever.php
35 lines
| 1 | <?php |
| 2 | /** |
| 3 | * JsonSchema |
| 4 | * |
| 5 | * @filesource |
| 6 | */ |
| 7 | |
| 8 | namespace JsonSchema\Uri\Retrievers; |
| 9 | |
| 10 | /** |
| 11 | * AbstractRetriever implements the default shared behavior |
| 12 | * that all descendant Retrievers should inherit |
| 13 | * |
| 14 | * @author Steven Garcia <webwhammy@gmail.com> |
| 15 | */ |
| 16 | abstract class AbstractRetriever implements UriRetrieverInterface |
| 17 | { |
| 18 | /** |
| 19 | * Media content type |
| 20 | * |
| 21 | * @var string |
| 22 | */ |
| 23 | protected $contentType; |
| 24 | |
| 25 | /** |
| 26 | * {@inheritdoc} |
| 27 | * |
| 28 | * @see \JsonSchema\Uri\Retrievers\UriRetrieverInterface::getContentType() |
| 29 | */ |
| 30 | public function getContentType() |
| 31 | { |
| 32 | return $this->contentType; |
| 33 | } |
| 34 | } |
| 35 |