isSharded() public method

Checks whether this document has shard key or not.
public isSharded ( ) : boolean
return boolean
 public function testIsShardedIfThereIsAShardKey()
 {
     $cm = new ClassMetadataInfo('stdClass');
     $cm->setShardKey(array('id' => 'asc'));
     $this->assertTrue($cm->isSharded());
 }