--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/b1619215-f3e3-4865-9465-c5f2346a9536%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CANv6TC0PVd0enH6Euey11pd0%2BhGo7m4AkueN5CTVM_gJaoXvCg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAAwdEzDjkq6_YgTVSGGQnNVi0a%2BsmLWVp9NC1OYPaejjW%2BKhZQ%40mail.gmail.com.
Think about a loader interface, that can throw a LoadingException. A StringLoader will never throw an exception, and any class tightly coupled to it should not care about LoadingException.
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAGOJM6JABnTv0%3DO4OCGNUMs_2YPR4pxe%3DBXg1j5%2B2ayNWHgBZg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAAwdEzDXSt7DxNJYDzmA8bTv5nnxxL2jmdOHR2pdXUj2qSbiow%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/etPan.5bfc0739.14709aeb.259%40ruu.nu.
Personally, I think that if a class is an implementation of an interface, their methods' docblocks should stick to the interface methods' docblocks as they are, because that fits better with the purpose behind using interfaces in 1st place, and that's what I always do in my code...
That being said, I'm not sure how you'd implement "eliminating @todo entries which aren't applicable to the implementation", because note that you can have multiple @todo entries in the interface! how do you identify which one is the one you want to eliminate?
For something like @throws, it's the same thing, although at least you can identify each tag by the exception they throw - anyway, you'd need something like a new "negation tag" like @not-throws (?), so you can override each specific exception that might be defined in the implementation... or am I missing something?
As I said, *personally* I don't consider this an important feature to focus on...
(I think I've sent this message to 3 wrong places now - trying again... 🤦)
Personally, I think that if a class is an implementation of an interface, their methods' docblocks should stick to the interface methods' docblocks as they are, because that fits better with the purpose behind using interfaces in 1st place, and that's what I always do in my code...
That being said, I'm not sure how you'd implement "eliminating @todo entries which aren't applicable to the implementation", because note that you can have multiple @todo entries in the interface. How do you identify which one is the one you want to eliminate?
For something like @throws, it's the same thing, although at least you can identify each tag by the exception they throw - anyway, you'd need something like a new "negation tag" like @not-throws (?), so you can override each specific exception that might be defined in the implementation... no?
As I said, *personally* I don't consider this an important feature to focus on...
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/851aff0f-3e55-4ed8-94da-c8aa0c20dce2%40googlegroups.com.
If a PHPDoc does not feature a part, such as Summary or Description, that is present in the PHPDoc of a super-element, then that part is always implicitly inherited.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/fcbe0f73-dc7e-420c-9c7e-649d89730db4%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/f4624339-bfe7-4ad8-a7f0-3bc3f067bb32%40googlegroups.com.