예제 #1
0
 public function __construct()
 {
     parent::__construct(Book::with(), ['name' => function ($iteration) {
         $this->name = $iteration->next();
     }, 'author' => function ($iteration) {
         $this->author = $iteration->next(new CreationOf(Author::with(), ['name' => function ($iteration) {
             $this->name = $iteration->next() ?: 'Test';
         }]));
     }]);
 }
예제 #2
0
 /** @return var[][] */
 protected function bookTypes()
 {
     return [['util.address.unittest.Book'], [XPClass::forName('util.address.unittest.Book')], [Book::with()]];
 }