for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LAG\SmokerBundle\Url;
class Url implements \Serializable
{
/**
* @var string
*/
protected $location;
protected $providerName;
* @var array
protected $options;
* Url constructor.
*
* @param string $location
* @param string $providerName
* @param array $options
public function __construct(string $location, string $providerName, array $options = [])
$this->location = $location;
$this->providerName = $providerName;
$this->options = $options;
}
public function serialize(): string
return serialize([
'location' => $this->location,
'providerName' => $this->providerName,
]);
* Constructs the object.
* @see https://php.net/manual/en/serializable.unserialize.php
* @param string $serialized <p>
* The string representation of the object.
* </p>
* @since 5.1.0
public function unserialize($serialized)
$data = unserialize($serialized);
$this->location = $data['location'];
$this->providerName = $data['providerName'];
* @return string
public function getLocation(): string
return $this->location;
public function getProviderName(): string
return $this->providerName;
* @return array
public function getOptions(): array
return $this->options;