Skip to content

Instantly share code, notes, and snippets.

@Raistlfiren
Last active February 12, 2016 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raistlfiren/818c250b06980589ba8f to your computer and use it in GitHub Desktop.
Save Raistlfiren/818c250b06980589ba8f to your computer and use it in GitHub Desktop.
<?php
/**
* @return string
* @VirtualProperty
* @SerializedName("foo")
*/
public function getFoo()
{
if ($this->getEmailMask())
return '****';
return $this->getContact->getEmail();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment