public static function getMask(array $masks, MaskBuilder $maskBuilder = null)
 {
     if ($maskBuilder === null) {
         $maskBuilder = new EntityMaskBuilder();
     }
     $maskBuilder->reset();
     foreach ($masks as $mask) {
         $maskBuilder->add($mask);
     }
     return $maskBuilder->get();
 }
Exemplo n.º 2
0
 /**
  * @dataProvider groupProvider
  */
 public function testGroup($groupMask, $expectedMask)
 {
     $this->assertEquals($expectedMask, $groupMask, 'Actual: ' . EntityMaskBuilder::getPatternFor($groupMask));
 }