function CollectionInterface::column
Returns the values from the given property, method, or array key.
Parameters
string $propertyOrMethod The name of the property, method, or: array key to evaluate and return.
Return value
array<int, mixed>
Throws
InvalidPropertyOrMethod if the $propertyOrMethod does not exist on the elements in this collection.
UnsupportedOperationException if unable to call column() on this collection.
1 method overrides CollectionInterface::column()
- AbstractCollection::column in vendor/
ramsey/ collection/ src/ AbstractCollection.php - @inheritDoc
File
-
vendor/
ramsey/ collection/ src/ CollectionInterface.php, line 99
Class
- CollectionInterface
- A collection represents a group of values, known as its elements.
Namespace
Ramsey\CollectionCode
public function column(string $propertyOrMethod) : array;