toArray() public method

public toArray ( ) : array
return array
 public function testToArray()
 {
     $bot = new Bot();
     $this->assertEquals(['isBot' => null, 'name' => null, 'type' => null], $bot->toArray());
     $bot->setIsBot(true);
     $bot->setName('my bot name2');
     $bot->setType('backlink');
     $this->assertEquals(['isBot' => true, 'name' => 'my bot name2', 'type' => 'backlink'], $bot->toArray());
 }