You are here

protected function ObjectComparator::toArray in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/comparator/src/ObjectComparator.php \SebastianBergmann\Comparator\ObjectComparator::toArray()

Converts an object to an array containing all of its private, protected and public properties.

Parameters

object $object:

Return value

array

3 calls to ObjectComparator::toArray()
ExceptionComparator::toArray in vendor/sebastian/comparator/src/ExceptionComparator.php
Converts an object to an array containing all of its private, protected and public properties.
MockObjectComparator::toArray in vendor/sebastian/comparator/src/MockObjectComparator.php
Converts an object to an array containing all of its private, protected and public properties.
ObjectComparator::assertEquals in vendor/sebastian/comparator/src/ObjectComparator.php
Asserts that two values are equal.
2 methods override ObjectComparator::toArray()
ExceptionComparator::toArray in vendor/sebastian/comparator/src/ExceptionComparator.php
Converts an object to an array containing all of its private, protected and public properties.
MockObjectComparator::toArray in vendor/sebastian/comparator/src/MockObjectComparator.php
Converts an object to an array containing all of its private, protected and public properties.

File

vendor/sebastian/comparator/src/ObjectComparator.php, line 105

Class

ObjectComparator
Compares objects for equality.

Namespace

SebastianBergmann\Comparator

Code

protected function toArray($object) {
  return $this->exporter
    ->toArray($object);
}