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