$collection->append($key, $object)

Appends an element to the data array

  • $key (string)
  • $object (mixed)
  • return ($collection)