File::__clone()

In this article

Performs a deep clone of the file.

Description

This method ensures that the MimeType value object is cloned to prevent any shared references between the original and cloned file.

Source

public function __clone()
{
    $this->mimeType = clone $this->mimeType;
}

Changelog

VersionDescription
0.4.2Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.