public function __construct(\DBFarmRole $farmRole) { $this->farmRole = $farmRole; $this->db = \Scalr::getDb(); }