Skip to content
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

feat/add-support-for-ignoring-properties #29

Merged
merged 5 commits into from
Oct 25, 2024

Conversation

zero-to-prod
Copy link
Owner

Ignoring Properties

You can ignore a property like this:

use Zerotoprod\DataModel\Describe;

class User
{
    use \Zerotoprod\DataModel\DataModel;

    public string $name;

    #[Describe(['ignore' => true])]
    public int $age;
}

@zero-to-prod zero-to-prod self-assigned this Oct 25, 2024
@zero-to-prod zero-to-prod added the enhancement New feature or request label Oct 25, 2024
@zero-to-prod zero-to-prod merged commit 759b38b into main Oct 25, 2024
3 checks passed
@zero-to-prod zero-to-prod deleted the feat/add-support-for-ignoring-properties branch October 25, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant