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