/**
* Creates an activity
*
- * @param array $item
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public function __construct(int $week, int $statuses, int $logins, int $registrations)
/**
* Creates an application entry
*
- * @param array $item
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public function __construct(string $name, string $client_id = null, string $client_secret = null, int $id = null, string $redirect_uri = null, string $website = null, string $vapid_key = null)
// Optional attributes
/**
* Unsupported
- * @var string
*/
//protected $category;
/**
* Creates an error record
- *
- * @param string $error
- * @param string error_description
*/
public function __construct(string $error, string $error_description)
{
/**
* Creates an list record
*
- * @param int $id
- * @param string $title
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public function __construct(string $id, string $title, string $policy)
/**
* Creates a preferences record.
*
- * @param BaseURL $baseUrl
- * @param array $publicContact Full contact table record with uid = 0
- * @param array $apcontact Optional full apcontact table record
- * @param array $userContact Optional full contact table record with uid != 0
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public function __construct(string $visibility, bool $sensitive, string $language, string $media, bool $spoilers)
*
* @see https://docs.joinmastodon.org/entities/status
*
+ * @property-read int $replies
+ * @property-read int $reblogs
+ * @property-read int $favourites
* @property-read int $dislikes
*/
class Counts
/**
* Class UserAttributes
*
+ * @property-read bool $favourited
+ * @property-read bool $reblogged
+ * @property-read bool $muted
+ * @property-read bool $bookmarked
+ * @property-read bool $pinned
+ *
* @see https://docs.joinmastodon.org/entities/status
*/
class UserAttributes
* @param BaseURL $baseUrl
* @param array $tag tag-view record
* @param array $history
- * @param array $following "true" if the user is following this tag
+ * @param bool $following "true" if the user is following this tag
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public function __construct(BaseURL $baseUrl, array $tag, array $history = [], bool $following = false)
/**
* Creates an Attachment entity array
*
- * @param array $attachment
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public function __construct(array $media)
/**
* Creates a hashtag
*
- * @param array $attachment
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public function __construct(string $name, array $indices)
/**
* Creates a media entity array
*
- * @param array $attachment
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public function __construct(array $media, string $url, array $indices)
/**
* Creates a mention record from an tag-view record.
*
- * @param BaseURL $baseUrl
* @param array $tag tag-view record
* @param array $contact contact table record
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
/**
* Creates a saved search record from a search record.
*
- * @param BaseURL $baseUrl
* @param array $search Full search table record
*/
public function __construct(array $search)
/**
* Creates an URL entity array
*
- * @param array $attachment
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public function __construct(array $media, array $indices)
use Imagick;
use ImagickDraw;
use ImagickPixel;
-use GDImage;
+use GdImage;
use kornrunner\Blurhash\Blurhash;
/**
*/
class Image
{
- /** @var GDImage|Imagick|resource */
+ /** @var GdImage|Imagick|resource */
private $image;
/*
* @param string $data Image data
* @param string $type optional, default ''
* @param string $filename optional, default ''
- * @param string $imagick optional, default 'true'
+ * @param bool $imagick optional, default 'true'
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
* @throws \ImagickException
*/
/**
* Create a blurhash out of a given image string
*
- * @param string $img_str
* @return string
*/
public function getBlurHash(): string
public $logline;
/**
- * @param int line id
+ * @param int $id line id
* @param string $logline Source log line to parse
*/
public function __construct(int $id, string $logline)