-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Readonly support #623
base: master
Are you sure you want to change the base?
Add Readonly support #623
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Prophecy. | ||
* (c) Konstantin Kudryashov <[email protected]> | ||
* Marcello Duarte <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Prophecy\Doubler\ClassPatch\ProphecySubjectPatch; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this class is part of the final API, it should not be in the ClassPatch namespace at all IMO. And this class should probably be tagged as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What defines the final API? Where should I place it instead? |
||
|
||
/** | ||
* Container for the closure that can be used and modified in a read-only class. | ||
* | ||
* @internal | ||
* | ||
* @noinspection PhpUnused | ||
*/ | ||
class ObjectProphecyClosureContainer | ||
{ | ||
/** | ||
* @var \Closure | ||
*/ | ||
public $closure = null; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be at the beginning in case there's an early return?