Abstract Class Cloneable can be extended to give the child class the ability to clone its self.
The child class must pass its class to super. You can then pass any needed arguments to help build
the cloned class to the protected _clone() method.
Example:
class Example extends Cloneable {
}
Todo: There must be more non primitive build in types to check. But for our current purposes, this works great.
Abstract Class Cloneable can be extended to give the child class the ability to clone its self.
The child class must pass its class to super. You can then pass any needed arguments to help build
the cloned class to the protected _clone() method.
Example:
class Example extends Cloneable {
} Todo: There must be more non primitive build in types to check. But for our current purposes, this works great.