for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace KriKrixs\object\beatmap;
class BeatMapUploader
{
private object $uploader;
/**
* Create a new BeatMapUploader object
* @param object $uploader
*/
public function __construct(object $uploader)
$this->uploader = $uploader;
}
* Return raw data
* @return object
public function toJson(): object
return $this->uploader;
* Return array data
* @return array
public function toArray(): array
return json_decode($this->uploader, true);
$this->uploader
object
string
$json
json_decode()
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
ignore-type
return json_decode(/** @scrutinizer ignore-type */ $this->uploader, true);
* Get uploader ID
* @return int
public function getId(): int
return $this->uploader->id;
* Get uploader name
* @return string
public function getName(): string
return $this->uploader->name;
* Get uploader hash
public function getHash(): string
return $this->uploader->hash;
* Get uploader avatar link
public function getAvatarURL(): string
return $this->uploader->avatar;
* Get uploader type
public function getType(): string
return $this->uploader->type;
* Is uploader unique set ?
* @return bool
public function isUniqueSet(): bool
return $this->uploader->uniqueSet;