mirror of
https://github.com/friendica/friendica
synced 2025-04-24 07:10:11 +00:00
Rename App Methods
- renamed a lot of App methods to CamelCase - replaced direct public variables with get-/set-Methods
This commit is contained in:
parent
5f9dd11cfb
commit
5a02e39a65
94 changed files with 481 additions and 338 deletions
92
src/Network/Curl.php
Normal file
92
src/Network/Curl.php
Normal file
|
@ -0,0 +1,92 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Network;
|
||||
|
||||
|
||||
/**
|
||||
* A content class for Curl call results
|
||||
*/
|
||||
class Curl
|
||||
{
|
||||
/**
|
||||
* @var string the Code of the Curl call
|
||||
*/
|
||||
private $code;
|
||||
|
||||
/**
|
||||
* @var string the content type of the Curl call
|
||||
*/
|
||||
private $contentType;
|
||||
|
||||
/**
|
||||
* @var string the headers of the Curl call
|
||||
*/
|
||||
private $headers;
|
||||
|
||||
public function __construct($code = '', $contentType = '', $headers = '')
|
||||
{
|
||||
$this->code = $code;
|
||||
$this->contentType = $contentType;
|
||||
$this->headers = $headers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Curl Code
|
||||
*
|
||||
* @param string $code The Curl Code
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Curl Code
|
||||
*
|
||||
* @return string The Curl Code
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Curl Content Type
|
||||
*
|
||||
* @param string $content_type The Curl Content Type
|
||||
*/
|
||||
public function setContentType($content_type)
|
||||
{
|
||||
$this->contentType = $content_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Curl Content Type
|
||||
*
|
||||
* @return string the Curl Content Type
|
||||
*/
|
||||
public function getContentType()
|
||||
{
|
||||
return $this->contentType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Curl headers
|
||||
*
|
||||
* @param string $headers the Curl headers
|
||||
*/
|
||||
public function setHeaders($headers)
|
||||
{
|
||||
$this->headers = $headers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Curl headers
|
||||
*
|
||||
* @return string the Curl headers
|
||||
*/
|
||||
public function getHeaders()
|
||||
{
|
||||
return $this->headers;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue