for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Thepixeldeveloper\Nolimits2PackageLoader;
use SimpleXMLElement;
class Park
{
/**
* @var SimpleXMLElement
*/
protected $parkXML;
* Park constructor.
*
* @param SimpleXMLElement $simpleXMLElement
public function __construct(SimpleXMLElement $simpleXMLElement)
$this->parkXML = $simpleXMLElement;
}
* @return string
public function getParkFile()
return (string) $this->parkXML->parkfile;
public function getAuthor()
return (string) $this->parkXML->author;
public function getDescription()
return (string) trim($this->parkXML->description);
public function getPreviewImage()
return (string) $this->parkXML->previewimage;
* @return bool
public function isEncrypted()
return (string) $this->parkXML->encrypted === 'true';
public function getFilesPrefix()
return (string) $this->parkXML->filesprefix;
* @return int
public function getCoasterCount()
return count($this->parkXML->coaster);