public function validate($scan_data = false)
    {
        $command = [
            'validate' => $this->name,
            'full'     => $scan_data,
        ];

        return $this->db->command($command);
    }
public function validate($scan_data = false)
    {
        $command = [
            'validate' => $this->name,
            'full'     => $scan_data,
        ];

        return $this->db->command($command);
    }
public function validate ( $ scan_data = false ) { $ command = [ 'validate' => $ this -> name , 'full' => $ scan_data , ] ; return $ this -> db -> command ( $ command ) ; }
Validates this collection

@link http://www.php.net/manual/en/mongocollection.validate.php
@param bool $scan_data Only validate indices, not the base collection.
@return array Returns the database's evaluation of this object.
Validates this collection