Exemplo n.º 1
0
 public function __construct($cs)
 {
     if ($cs instanceof Collection) {
         $this->cids = $cs->ids();
     } else {
         $this->cids = Caste::toIds(unflatten($cs));
     }
 }
Exemplo n.º 2
0
 public function __construct($cs)
 {
     $this->cids = Caste::toIds(unflatten($cs));
 }
Exemplo n.º 3
0
 public function __construct($cs)
 {
     if ($cs instanceof Collection) {
         if ($cs->className() != 'Caste') {
             throw new Exception('AIFC_Target constructor takes a Collection<Caste>');
         }
         $this->cids = $cs->ids();
     } else {
         $this->cids = Caste::toIds(unflatten($cs));
     }
 }