for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Alexander Getmansky <[email protected]>
* @package GetSky\RandomWinner
*/
namespace GetSky\RandomWinner;
* The implementation of a simple member.
class Member implements MemberInterface
{
* @var mixed
protected $object;
* @var int
protected $chance;
* @param $object mixed
* @param $chance int
public function __construct($object, $chance)
$this->object = $object;
$this->chance = (int)$chance;
}
* @return mixed
public function getObject()
return $this->object;
* @return int
public function getChance()
return $this->chance;