/** * Returns the length of the list. * * @return int */ public function getLength() { return $this->objectsList->count(); }