<?php array_flip(array $array): array
<?php $attributes = array_merge($this->definition(), $attributes, $this->state); if (!empty($this->except)) { $attributes = array_diff_key($attributes, array_flip($this->except)); } $instance = new $this->modelName();
<?php shuffle($keys); $invoiceHeader->setAttributes(array_merge(array_flip($keys), $attributes)); $this->assertSame($invoiceHeader->getExpectedOrder(), array_keys($invoiceHeader->sortedAttributes()));