public function findUser() { if (!$this->namespacedAttributeBag->has('user')) { return null; } return $this->namespacedAttributeBag->get('user'); }
/** * @return bool */ public function hasRequestId() { return $this->attributeBag->has('request_id'); }
/** * @dataProvider attributesProvider */ public function testHas($key, $value, $exists) { $this->assertEquals($exists, $this->bag->has($key)); }