Prose\HostsByRoleBase::__construct PHP Method

__construct() public method

public __construct ( StoryTeller $st, $args = [] )
$st DataSift\Storyplayer\PlayerLib\StoryTeller
    public function __construct(StoryTeller $st, $args = array())
    {
        // call the parent constructor
        parent::__construct($st, $args);
        // arg[0] is the name of the box
        if (!isset($args[0])) {
            throw new E5xx_ActionFailed(__METHOD__, "Param #0 needs to be the role you've given to the machine(s)");
        }
        $this->roleName = $args[0];
    }